How can I get the strings in the link to PHP? how can I get the strings in the link to PHP? For example, the link is www.xxxxx.com. cngoods. php? Goods_id183 program: & lt; INPUTnamegoods_idvalue183typehidden & gt; & lt; INPUTnamebaseurlvaluew
How can I get the strings in the link to PHP?
For example, the link is http://www.xxxxx.com.cn/goods.php? Goods_id = 1, 183
Program entry:
The problem is as follows:
Statement value = 183. When 183 in the link is changed to another number, the VALUE followed by the value also changes. I know that requests are implemented in ASP, but PHP won't. please help me.
------ Solution --------------------
If (! Empty ($ _ GET ['goods _ id']) {
$ Value = intval ($ _ GET ['goods _ id']);
} Else {
$ Value = '';
}
?>
Type = hidden>
------ Solution --------------------
PHP code
------ Solution --------------------
Discussion
ASP statement is
<% Good_id = request ("good_id") %>
Type = hidden>
Please help. thank you.