Problem passing $_GET variable
Posted: Thu Nov 13, 2008 5:02 pm
So I'm processing a registration form, and if there's a problem I'm passing back what they entered so they don't have to retype it. so the URL looks like ...register.php?variable1=value1&variable2=value2 and so on. The problem comes when the user puts a '#' in their address. when it gets passed back it and all the variables after it get ignored. I think they're seen as a comment. So for example is only being seen as by the page and the later fields aren't repopulating even though I see them in the URL. Any ideas how to pass back the # safely? Thanks.
Code: Select all
register.php?emailEntered=test@test.com&password=1&fnameEntered=John&lnameEntered=Smith&addr1Entered=100%201st%20St%20#3&addr2Entered=&cityEntered=Beverly Hills&stateEntered=CA&zipEntered=90210Code: Select all
register.php?emailEntered=test@test.com&password=1&fnameEntered=John&lnameEntered=Smith&addr1Entered=100%201st%20St%20#