Re: 2 variables in an URL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: 2 variables in an URL

From: David Dorward <dorward@yahoo.com>
Date: Tue Apr 04 2006 - 19:26:41 CEST

Lee wrote:

>>('http://127.0.0.1/add_task.php?tk_request_name={$req_name}?tk_req_id={$maxValue}');
>>but I can't get them separately in add_task.php

> There should only be one "?". The second one should be replaced with "+".

Query string key/value pairs should be separated with ampersand characters
(or semi-colons). A plus is an encoded space, and is quite acceptable as
part of the value.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Mon May 1 04:40:46 2006