I have the following code, i use v similar code on many pages but on this particular page it simply doeasn’t work in either ie or ff
here’s the code:
<form action='/productView.html' method=post name=prod_form>
<a href='javascript:;' onclick='document.forms['prod_form'].submit(); return false;' class='button101' style='margin-left:92px;'>".$button_text."</a>
<input type=hidden name=action value='".$button_text."'>
<input type=hidden name=PRid value=".$databack3[PRid].">
<INPUT type='hidden' name='cat_id' value=".$databack3[prodcatID].">
<INPUT type='hidden' name='for_user_id' value=".$for_user_id.">
<input type=hidden name=source value=".$source."></form>
However, if i change to normal button as below it works fine:
<form action='/productView.html' method=post name=prod_form>
<input type=submit name=action class=button99 value='".$button_text."' style='margin-left:85px;'
<input type=hidden name=PRid value=".$databack3[PRid].">
<INPUT type='hidden' name='cat_id' value=".$databack3[prodcatID].">
<INPUT type='hidden' name='for_user_id' value=".$for_user_id.">
<input type=hidden name=source value=".$source."></form>
Any ideas?
Here is your problem;
Use regular quotes for you HTML arguments and you´ll be fine.
As it seems you´re using PHP to create a string with your HTML you´d try this to escape the quotes;