怎么样在服务器端执行一个链接变量,如url=....?a=...

haonanernet 2005-04-26 11:33:57
我的url=http://www.e127.net/fortune/sendSms.php?destMobile="+document.register.mobilecode.value+"&content="+document.register.textarea.value
这个是传值到其他网页,
response.redreait(url)是不行的




下面是php调用的列子asp中如何写???

<?
$url = "http://www.e127.net/fortune/sendSms.php?srcMobile=13302048720&destMobile=13752211296,13302048720,02281530512&content=test&linkId=111";
echo $url."<br>";
$ret = file_get_contents($url);

echo $ret;

?>
...全文
111 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
jzywh 2005-04-26
  • 打赏
  • 举报
回复
Server.Execute()
  • 打赏
  • 举报
回复
response.redirect(url)
*^_^*
fantiny 2005-04-26
  • 打赏
  • 举报
回复
或者

url="http://www.e127.net/fortune/sendSms.php?destMobile="&request.from("mobilecode")&"&content="&request.form("textarea")&""

response.redirect url

redirect 你写成 redreait 了
fantiny 2005-04-26
  • 打赏
  • 举报
回复
url = "http://www.e127.net/fortune/sendSms.php?srcMobile=13302048720&destMobile=13752211296,13302048720,02281530512&content=test&linkId=111"
response.write "<script>"
response.write "window.location.href =""" & url & """;"
response.write "</script>"
poron9 2005-04-26
  • 打赏
  • 举报
回复
url=http://www.e127.net/fortune/sendSms.php?destMobile="+document.register.mobilecode.value+"&content="+document.register.textarea.value

上面这句是JS脚本里的吧?asp里应当是这样:

url="http://www.e127.net/fortune/sendSms.php?destMobile="&request.from("mobilecode")&"&content="&request.form("textarea")&""
response.redreait(url)

超级大笨狼 2005-04-26
  • 打赏
  • 举报
回复
好,同意兔子所说。
创造奇迹9999 2005-04-26
  • 打赏
  • 举报
回复
*^_^*

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧