Hi, quick summary of what im trying to do. I am passing variables from one page to the next over a series of 5 pages. there is various types info fields to be filled in (name, address, phone, item description, etc)
in the beginning, when I would come to the end of my script, all of my variables that were TEXT and contained special characters (',", \, etc) where written with slashes before them. example don't would be seen as don\'t by the end user. In an attempt to fix this, I passed each variable through a hidden form field like this, stripping the slashes from each variable in each page:
<input type=\"hidden\" name=\"$name\" value=\" " . stripslashes ($name) . " \">.
this got rid of the slashes okay, but it created a new problem. There are now spaces before and after each resolved variable like this:
<input type=\"hidden\" name=\"name\" value=\" name \">
the end problem is that when its upped to teh database its upped with the spaces and I am unable to do searches on the data unless I use % characters before and after the value.
what caused these spaces to be added to the script? how do I get rid of them? is there a better way to track variables over many pages and not have to use hidden form fields?
any help with this is greatly appreciated.
blue presley