jerel Posted April 6, 2007 Share Posted April 6, 2007 Hello, Php freaks forum! I have a recurring issue, I have a series of forms passing variables from one to the next. via POST When an ' is entered the result is //' for every additional page it grows ////' seems to double. I'm not having any luck with this. A somewhat related problem is when i pull variables from my sql db's they carriage returns show up in the db but not when i pull the variable. Please take it easy on me this is my first post. I know how forums can get with newbies. Thanks Jerel ??? Link to comment https://forums.phpfreaks.com/topic/45901-solved-first-post-phphtml-form-_post-symbol-issue/ Share on other sites More sharing options...
AndyB Posted April 6, 2007 Share Posted April 6, 2007 retrieve the values and use the stripslashes() function to avoid duplication of // to get the carriage returns to 'show up', use the nl2br() function on the text before it is displayed. Link to comment https://forums.phpfreaks.com/topic/45901-solved-first-post-phphtml-form-_post-symbol-issue/#findComment-222974 Share on other sites More sharing options...
kenrbnsn Posted April 6, 2007 Share Posted April 6, 2007 You need to use the stripslashes() function on any data you receive from the form. Ken Link to comment https://forums.phpfreaks.com/topic/45901-solved-first-post-phphtml-form-_post-symbol-issue/#findComment-222975 Share on other sites More sharing options...
jerel Posted April 6, 2007 Author Share Posted April 6, 2007 Awesome! Thank you! Link to comment https://forums.phpfreaks.com/topic/45901-solved-first-post-phphtml-form-_post-symbol-issue/#findComment-223004 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.