murfitUK Posted August 31, 2006 Share Posted August 31, 2006 I have an html form with input type=text and name=line1. This calls reply.php using method=post.reply.php has:$line=$_POST['line1'];print $line;and does some other stuff.My problem is if the user types a ' in the form input eg I can't do that. It displays as I can\'t do that.What is the easiest way of solving this?I'm only asking because I know someone will have a quick answer. If I try and sort it by reading the manual I'll end up write 100s of lines of script! Link to comment Share on other sites More sharing options...
justsomeguy Posted August 31, 2006 Share Posted August 31, 2006 $line = stripslashes($_POST['line1']); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now