hi This is the code related to the form <form id="form1" name="form1" method="post" action="saveit.php"> <label> <textarea name="txt1" cols="100" rows="25"></textarea> <input type="submit" name="Submit" value="Submit" /> </label> </form> PHP: when i enter the value "Jane" (with double quote) , and submit i want to display that text Here the saveit.php echo $_POST["txt1"]); PHP: But here it displays as \"Jane\" (Not as "Jane") So how to get the out put as "Jane" (with double quote) further , if i enter like <html> hi </html> it needs to display as it is. currently it shows only: hi It removes html tags... i want to stop interpreting html. needs to show html as it is. how can i do this!
Case 1, regarding the Jane: echo stripslashes($_POST["txt1"]); PHP: Case 1, regarding the <html>: echo htmlentities($_POST["txt1"]); PHP: So you might want to use this for the overall: echo htmlentities(stripslashes($_POST["txt1"])); PHP: - ads2help
Hi is there a way to stop all these at once.... interpreting html tags... and things such as & gt; lt; "e; etc.... way to stoping interprting html related things
I don't get you. Did you try my last script? And you're great, you never even showed your appreciation to other's help in both your posts. Great one dude. - ads2help