传递document.form。价值到另一页 [英] Passing document.form. value to another page

查看:57
本文介绍了传递document.form。价值到另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有人知道如何将文本框输入值传递到另一页。


我正在使用

document.secondform.fieldname.value = document.first formname.fieldname.value


但它不起作用


谢谢

解决方案




您所遵循的方法看起来正确(不是您想听到的),可以你发布了实际的代码和用于驱动javascript的html,所以我们可以看看并帮助你更好..


紫色


< blockquote class =post_quotes>



有人知道如何将文本框输入值传递给另一页。


我正在使用

document.secondform.fieldname.value = document.first formname.fieldname.value


但是它不起作用


谢谢



你需要一些服务器端脚本,javascript和H TML是客户端。


当你用HTML创建一个表单时,这些值会被传递到另一个页面。

[HTML]< form method =" ; GET" action =" page.php">< / form> [/ HTML]

方法意味着如何发送数据,GET你会看到地址栏的所有内容(mysite。 com / page.php?something = value& more = somethingelse)并且POST不会出现在地址栏中(当你不想看密码的时候有用)。

动作是指它进入的页面。


在页面中.php

[PHP]


val =


Hi,

Is anybody know how to pass textbox input value to another page.

I am using
document.secondform.fieldname.value=document.first formname.fieldname.value

but it''s not working

Thanks

解决方案

Hi,

the approach you are following looks right (prob not what you wanted to hear), can you post the actual code and the html used to drive the javascript so we can take a look and help you better..

Purple


Hi,

Is anybody know how to pass textbox input value to another page.

I am using
document.secondform.fieldname.value=document.first formname.fieldname.value

but it''s not working

Thanks

You need some server-side scripting, javascript and HTML are client side.

when u create a form in HTML, the values are passed to another page.
[HTML]<form method="GET" action="page.php"></form>[/HTML]

method means how to send the data, GET u will see everything the address bar (mysite.com/page.php?something=value&more=somethingelse) and POST wouldn''t show up in the address bar (good for when u don''t want passwords to be seen).
action means the page that it goes to.

the in the page.php
[PHP]


val =


这篇关于传递document.form。价值到另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆