Using PHP Version 3.0.7
Hi
I am trying to get text into a db and am having issues with addslashes (at least i think that's the problem)
I am carrying text through a set of pages in a hidden field, when i do a view source on the page it looks as it should a la:
<input type=hidden name=text value=http://www.phpbuilder.com/board/archive/index.php/"that\'s right now">
Yet when i take the last step and put this into the db it does not put in the slash, all that goes in is: that's right
Yet if i add another occurrence of
$text = addslashes($text)
right before the data goes in it works OK.
Seems like the problem might be related to carrying slashes in hidden fields? But, if I echo $text right before I add to the db it does print the slash.
Any ideas?
Thanks
Darren
Hi
I am trying to get text into a db and am having issues with addslashes (at least i think that's the problem)
I am carrying text through a set of pages in a hidden field, when i do a view source on the page it looks as it should a la:
<input type=hidden name=text value=http://www.phpbuilder.com/board/archive/index.php/"that\'s right now">
Yet when i take the last step and put this into the db it does not put in the slash, all that goes in is: that's right
Yet if i add another occurrence of
$text = addslashes($text)
right before the data goes in it works OK.
Seems like the problem might be related to carrying slashes in hidden fields? But, if I echo $text right before I add to the db it does print the slash.
Any ideas?
Thanks
Darren