Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

&

Status
Not open for further replies.

yebaws

Technical User
Mar 22, 2007
42
GB
Next question.....

If I try and send a field containing & to my database, it appears there as & and when I call it again, it also appears as &. To be valid html, I want it to be &. Apart from replacing each occurrence of & with & when I call the field, is there another way to do it?
 
Again a PHP question: Use htmlentities() or htmlspecialchars() on your data before displaying. This will change characters like & into their html eqivalents.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top