如何将GET变量插入HTML表单 [英] How to insert GET variables into a HTML form

查看:70
本文介绍了如何将GET变量插入HTML表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢您的文章。 Actuall这涉及将参数从HTML页面传递给PHP,我们正在寻找相反的方法。将参数从URL链接传递到HTML表单。以下是我们尝试更新的表单的代码,它是我们希望从URL链接传递给表单的LEAD ID的隐藏值。


如何实现?


以下是我们表单的HTML:

Thanks for the article. Actuall this deals with passing parameters from an HTML page to PHP and we are looking for the opposite. Passing parameters from a URL link TO an HTML form. Here is the code for the form we are trying to update and it is the hidden value of LEAD ID that we want passed to the form from the URL link.

How could this be accomplished?

Here is the HTML of our form:

展开 | 选择 | Wrap | 行号

推荐答案

你好史蒂夫。


我把你的问题转移到PHP论坛中自己的主题,我们的专家更有可能阅读它。


我还在帖子中添加了[code]标签。所有代码都应封装在代码标记中。
Hi Steve.

I moved your question into it''s own thread in the PHP forum, where it is more likely to be read by our Experts.

I''ve also added [code] tags to your post. All code should be encapsulated in code tags.


使用PHP,您可以更改隐藏的< input>标记看起来像这样:
Using PHP, you could change your hidden <input> tag to look something like the this:
展开 | 选择 | Wrap | 行号


我也使用它来拉一个名为contact的字段,其中包含完整的一个人的名字。当它将值放在文本框中时,它只放置名字而不是全名。以下是我正在使用的代码:

I am using this also to pull a field called contact which contains the full name of a person. When it places the value in the text box, it only puts the first name and not the full name. Here is the code I am using for this:

展开 | 选择 | Wrap | 行号


这篇关于如何将GET变量插入HTML表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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