在地址栏上捕获var [英] caputuring the var on address bar

查看:82
本文介绍了在地址栏上捕获var的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有第一个php脚本,我在下一页分配了值''id'',这次我使用html编码。我的问题是如何捕获html代码上的id号(见下面的引用),这次用PHP脚本将其传递到下一页?


http://myrab.ddtp.org/add_reviewer.php?id=1

解决方案

HTML无法实现。您可以使用PHP或JavaScript(如果PHP不是一个选项)来检索值。


我完全同意acoder。 HTML / CSS仅用于显示网页,不能处理页面之间传递的值。这就是脚本语言,例如PHP和Javascript。您将需要使用其中一个来捕获传递的信息。


问候,


Jeff


< blockquote>转到PHP论坛。


I have 1st php script where i assigned the value ''id'' on the next page where this time I use html coding. My question is how can you capture the id number (see below quote) on html code to pass it to the next page with php script this time?

http://myrab.ddtp.org/add_reviewer.php?id=1

解决方案

This is not possible with HTML. You can either use PHP or JavaScript (if PHP isn''t an option) to retrieve the value.


I fully agree with acoder. HTML/CSS are only for the display of the web page and not able to process values passed between pages. That is what scripting languages, such as PHP and Javascript, are for. You will need to use one of them to capture the information passed.

Regards,

Jeff


Moving to PHP forum.


这篇关于在地址栏上捕获var的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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