Re: Reading posted form variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simon Allison wrote:
Hey,


....




Obviously this has something to do with the quotation marks in the a href
statement, however I am new to php and my attempts using addslashes and
stripslashes have failed. I would be most grateful if anyone could help me.



addslashes() and stripslashes() won't help completely (although you may still need to escape quotes - depending on the way you call the following funcs...)

- take a look at htmlentities() and htmlspecialchars(), basically you need to encode
you 'msg' so that any HTML contained in the message is not rendered by the browser.



Cheers,

Simon





-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux