View Single Post
Old May 7th, 2006, 3:51 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,890
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
I believe that's because you don't want to pass that kind of data through the URL. The URL GET variables generally don't like certain things, like "#" or "&" or "?" as it will mistake them for certain things (# is an id referencer, & means next attribute, ? triggers the GET statements). Your PHP script stops reading the variable "userinformation" once it hits the '#', because it interprets that as an ID identifier.

Your two options, are...

1) Instead of passing a pound sign through, pass the ascii equivelent: '%23' just as '%20' represents as whitespace character, '%23' is the pound sign. PHP will automatically convert it back to a pound sign.

2) Use POST data. Whatever form you're using to access the PHP script, turing the "action" from "GET" to "POST". Then in your PHP script, use the variable $_POST['userinformation'] rather than $_GET['userinformation'].

Make any sense?
Sane is online now   Reply With Quote