I am wanting to change the Delimiter used for the Ajax send string
Perhaps there is an obvious answer?
All the examples/documentation I have found for passing information from client to server use the & as a delimiter with no mention on how or if it is possible to change this.
Consider:
test.js
chSSstr = <URL>?<label1>=<val1>&<label2>=<val2>
xmlHttp.open("GET",chSSstr,true)
test.php
$val1 = $_GET['<label1>'];
$val2 = $_GET['<label2>'];
In this situation there is a problem if any of the data contains an &
Lets say val1 is "You & Me"
$val1 only evaluates to "You"
$val2 fails to evaluate because <label2> is also affected
I would like to be able to change the delimiter to ~ or | ... is this possible? If so how?
Perhaps there is an obvious answer?
All the examples/documentation I have found for passing information from client to server use the & as a delimiter with no mention on how or if it is possible to change this.
Consider:
test.js
chSSstr = <URL>?<label1>=<val1>&<label2>=<val2>
xmlHttp.open("GET",chSSstr,true)
test.php
$val1 = $_GET['<label1>'];
$val2 = $_GET['<label2>'];
In this situation there is a problem if any of the data contains an &
Lets say val1 is "You & Me"
$val1 only evaluates to "You"
$val2 fails to evaluate because <label2> is also affected
I would like to be able to change the delimiter to ~ or | ... is this possible? If so how?