[thelist] PHP addslashes() Problem

Jason Bauer jbauer at chimesnet.com
Thu Nov 7 13:55:08 CST 2002


> All works fine, however if from the preview page they choose to accept
their
> shown message (Hello "World"), they click a button named "Publish". The
code
> looks like such:
>
> <input type="hidden" name="message" value="<? echo $message; ?>">
> <input type="submit" name="frmaddblog" value="Publish Blog">
>
> (As you can see I am parsing the message variable across to the other
> function from within a hidden input box named also message)


Check out: http://www.php.net/manual/en/function.htmlentities.php

You can use that function to turn the quotes into HTML entities. Enjoy!

---
Jason Bauer
jbauer at chimesnet.com
Programmer/Analyst
Chimes, Inc.





More information about the thelist mailing list