一段php 用asp 写出来

来源:百度知道 编辑:UC知道 时间:2024/05/31 11:36:19
<?php

$message = $_POST['message'];
//进行相应的替换
$temp = str_replace('[emot]', "<img src='images/", $message);
$emotions = str_replace('[/emot]', ".gif' />", $temp);

echo $emotions;

上面这些能用asp写 出来吗
这里有 代码的全文--http://crazymud.javaeye.com/blog/424076

我说错了。我是想在html 里面能接收 到 form 的值。并用类似于上面的php代码,替换为图片的真实路径并显示出来。

message = request("message")
temp = str_replace("[emot]","<img src='images/",message)
emotions = str_replace("[/emot]", ".gif' />", temp)
response.write emotions

可以
<%
function rep_test(message)
temp=replace("[emot]","<img src='inages/'",message)
emotions=replace("[/emot]",".gif />",temp)
rep_test=emotions
end function
%>
需要更多,MAIL TO l3s1@163.com