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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to code to include quotes in a form value

Status
Not open for further replies.

eaglesphan

IS-IT--Management
Jul 27, 2002
13
US
It's been a long day and I'm drawing a blank. I have a form that has a radio button that when checked will insert this value into a MySQL database:
value="<img src="../../images/content/meac_button.gif">"

The problem obviously is the two sets of quotes. As is, the value only sees <img src= as it stops when it gets to the second quotes. I tried escaping the quotes with a / but that doesn't work either.

Does anyone know of a way to make this work to get the entire tag to be inserted? So far, I'm having to go into the database with phpMyAdmin to change the tag but there has to be a way to get it done from the form.
 
if its ASP then replace the " with ""
if its PHP then \" not /"

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top