Forum Moderators: coopster
My first post here and I am still learning PHP so bare with me
I have a html form that submits to a php script which prints out the results into an email ready to send.
However if someone uses an Ampersand (&) in a company for example AT&T the script stops after the &.
Could you help me on how to change the script so it allows the character to de displayed and completes the script correctly?
Thanks Guys!
James
If you would like to see the script its <snip>
Add a company name with a & and when you click on mail it doesnt work
[edited by: dreamcatcher at 6:16 pm (utc) on Oct. 18, 2007]
[edit reason] no urls as per T.O.S [webmasterworld.com].Thanks [/edit]
Is your AT&T becoming AT& in the $_POST['company'], or in the email that you are receiving? If it is wrong in the email, is it an html email or plan text?
You could use the idea above to change '&' to 'and' as there should be no encoding issues with the word and, however using & in plain text will not help you...as only those that speak html will get & = & :)