中国站长论坛

中国站长论坛 ›› 网页制作初级班 ›› 怎样把a.htm表单里的值传到b.htm里?

页码: 1

怎样把a.htm表单里的值传到b.htm里?

- tangxx 2008-07-02 17:46

a.htm

<form method="get" action="b.htm"  name="myform">
    <input name="src" type="text" value="" size="70">
     <input type="submit" name="Submit" value="提交">
  </form> 

文本框里是网址
在b.htm中有个变量url,请问怎么把src的值传给url

Re:怎样把a.htm表单里的值传到b.htm里?

- xf017 2008-07-05 09:32

找个asp教程看看,我看的是尚网的教程。

Re:怎样把a.htm表单里的值传到b.htm里?

- qwxren 2008-07-05 10:19

javascript吧.

Re:怎样把a.htm表单里的值传到b.htm里?

- 孤龙浪天涯 2008-07-05 12:20

怎么没有详细的答案啊!?我也想知道呢!!

Re:怎样把a.htm表单里的值传到b.htm里?

- qwxren 2008-07-05 13:59

在b页里用javascript取得location,然后分析一下,取出参数即可。

Re:怎样把a.htm表单里的值传到b.htm里?

- 追づ风 2008-07-06 14:58

method="get"不安全。。。有保密数据最好用post

Re:怎样把a.htm表单里的值传到b.htm里?

- qwxren 2008-07-07 14:28

他是提交到.htm中,不安全也没办法,
如果是提交到asp或其他动态页面中,可以使用post
现在只能用get吧,不安全也没办法呀,因为现在不是考虑安不安全的时候

页码: 1