SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 29, 2006, 18:06 #1
- Join Date
- Dec 2005
- Posts
- 39
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
html value passing thru form to MSaccess db
I am having problems trying to pass html code as a value thru my dropdown box form to an msaccess db. heres what the checkbox looks like and it works fine if i put a regular text value in it like "off" etc..
<select name="availability" tabindex="3">
<option value="">Choose</option>
<option value="<img src="../images/available-no.gif" width="80" height="12">">Off</option>
<option value="On">On</option>
</select>
does anyone know how to pass html thru a form as an option value??????
thanks in advance.
-
Jul 31, 2006, 03:29 #2
- Join Date
- Feb 2005
- Location
- from Madrid to Heaven
- Posts
- 8,271
- Mentioned
- 252 Post(s)
- Tagged
- 1 Thread(s)
Your HTML code is not correct. Use simple quotes if you need them inside double quotes.
If you use double quotes all the time, the program will belive that the value is "<img src=" because thinks that the ending pair is there.
So it should be "<img src='../images/available-no.gif' width='80' height='12'>"
This way, the program knows that the string starts with < but doesn't get confused where it ends.
Bookmarks