Mr Dude
09-10-2007, 12:38 AM
Hi Everyone,
I am at a loss to explain why some of my form submission markup works fine, yet slightly modified markup does not!
The markup that works ok with my website is as follows:
<td valign="top" background="../images/nav/left_nav_top.gif" height="800" width="131"><img src="../images/nav/invisible_pixel.gif" width="131" height="1" border="0"> <img src="../images/home/left%20nave_graphic.gif" width="131" height="173"> <form name="searchform" action="store_searchresults.asp?strCategory=&strSubCategory=&strThirdCategory" method="post" onSubmit="MM_validateForm('strKeyword','','R');return document.MM_returnValue">
<IMG SRC="../images/nav/left_nav_search.gif" WIDTH=127 HEIGHT=12 ALT="" BORDER=0>
<INPUT TYPE="HIDDEN" NAME="strAction" value="search">
<input style="background-color: #FFFFFF;" type="text" name="strKeyword" size="11">
<input type="image" border="0" name="imageField" src="../images/nav/top_search_gob.gif" width="24" height="22"></form></td>
However the following markup on the same page does not work consistenty between different browser version. It works fine in IE but it does not work in Firefox. Firefox presents the message "Please enter a keyword" and refuses to submit the form.
<form name="searchform" action="store_searchresults.asp?strCategory=&strSubCategory=&strThirdCategory" method="post" onSubmit="MM_validateForm('strKeyword','','R');return document.MM_returnValue">
<input type="hidden" name="strAction" value="search">
<input type="hidden" name="strKeyword" value="LV4">
<input type="image" border="0" name="imageField" src="../images/marquee/LV4403B4.jpg" width="113" height="98">
</form>
It is as though Firefox cannot see the "strKeyword" attribute. However IE has not problem with it.
Any help with this will be greatly appreciated, as I am at a loss...
Thanks for your time
Regards
David
I am at a loss to explain why some of my form submission markup works fine, yet slightly modified markup does not!
The markup that works ok with my website is as follows:
<td valign="top" background="../images/nav/left_nav_top.gif" height="800" width="131"><img src="../images/nav/invisible_pixel.gif" width="131" height="1" border="0"> <img src="../images/home/left%20nave_graphic.gif" width="131" height="173"> <form name="searchform" action="store_searchresults.asp?strCategory=&strSubCategory=&strThirdCategory" method="post" onSubmit="MM_validateForm('strKeyword','','R');return document.MM_returnValue">
<IMG SRC="../images/nav/left_nav_search.gif" WIDTH=127 HEIGHT=12 ALT="" BORDER=0>
<INPUT TYPE="HIDDEN" NAME="strAction" value="search">
<input style="background-color: #FFFFFF;" type="text" name="strKeyword" size="11">
<input type="image" border="0" name="imageField" src="../images/nav/top_search_gob.gif" width="24" height="22"></form></td>
However the following markup on the same page does not work consistenty between different browser version. It works fine in IE but it does not work in Firefox. Firefox presents the message "Please enter a keyword" and refuses to submit the form.
<form name="searchform" action="store_searchresults.asp?strCategory=&strSubCategory=&strThirdCategory" method="post" onSubmit="MM_validateForm('strKeyword','','R');return document.MM_returnValue">
<input type="hidden" name="strAction" value="search">
<input type="hidden" name="strKeyword" value="LV4">
<input type="image" border="0" name="imageField" src="../images/marquee/LV4403B4.jpg" width="113" height="98">
</form>
It is as though Firefox cannot see the "strKeyword" attribute. However IE has not problem with it.
Any help with this will be greatly appreciated, as I am at a loss...
Thanks for your time
Regards
David