Hey,
I'm using JS to submit a form with image submit buttons, using the
following code...
(Page is here... http://www.cards2do.co.uk/addcard.php?card_id=292 )
************************************************** ************************************
<form action="https://www.cards2do.co.uk/addcard.php" method="post"
id="loginform">
Username:
..................... Rest of Form.....................
<input type="hidden" name="submit" value="true"/>
<input type="image" src="images/buttons/login.gif" alt="Click To Login"
onclick="javascript:document.loginform.submit();"/>
</form>
************************************************** ************************************
There are two forms on this particular page... They use identical code
except that the second form has a different name (also updated in the
onclick event), and the dummy submit variable has a different name to
help the PHP.
The problem...
Everything works perfectly in IE... both the user login and the "adding
card" form work great.
However in Firefox... the login works perfectly but the "adding card"
form does not. Using the PHP function "var_dump($_POST)" hsa shown me
that the post from firefox is a totally null array. No keys or values
are present at all. Firefox reported no Javascript errors in the
console when I ran it.
I would be extremely grateful if anyone knows the cause of the problem.
I would assume it's my Javascript rather than Firefox! : )
Many Thanks,
Adam King
Cards2do.co.uk