This topic is locked

How to get rid of %20 on url variable?

1/13/2007 12:26:54 AM
PHPRunner General questions
E
ERuiz author

Using a tip from a previous post, I am passing 2 variables via the URL to login.php as this:
/login.php?btnSubmit=Login&username=Efrain%20Ruiz&password=123456
The space is being converted to %20 before it reaches login.php, so the script is giving a user not found error.
How can I prevent %20 from being added? Or is there a way for the login.php file to strip that %20 before it accepts the username variable?
Regards,
ERuiz

T
thesofa 1/13/2007

you could change the user names so there is no space, i.e. EfrainRuiz or Efrain_Ruiz

hth

E
ERuiz author 1/13/2007

Found the problem! I was passing the info via a url and this url is in SEO format, which was having problems sending the variable. Thanks for your reply, though! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=14537&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />