Jump to content

Easiest way of using a ' in a string


murfitUK

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...