Hello, Im using $_get to retrieve some info and it seems to be adding a forward slash to the end of my strings. I turned off magic quotes and stripslashes doesn't seem to work for me.
Anyone got any ideas?
Thank you.
php adding forward slashes to $_get
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: php adding forward slashes to $_get
Did you restart apache after disabling magic quotes?
Re: php adding forward slashes to $_get
Whenever I load data out of $_POST or $_GET, I always check if magic quotes are on and act accordingly:
Code: Select all
$username = (get_magic_quotes_gpc()) ? stripslashes($_GET['username']) : $_GET['username'];Real programmers don't comment their code. If it was hard to write, it should be hard to understand.