Posts: 5
Name: David van der Tuijn
|
Hi,
I would like to submit a form with an invisible submit button,
And use the ' RETURN' button on the keyboard to submit the form.
However this does not work when using multiple input fields within Internet Explorer.
PHP Code:
<?PHP print_r ($_POST); ?>
HTML Code:
<h1>Does NOT work in Internet Explorer:</h1>
<form action="index.php" method="post">
<input type="text" name="naam" />
<input type="text" name="achternaam" />
<input type="submit" name="submit" style="visibility: hidden" />
</form>
<hr />
<form action="index.php" method="post">
<input type="text" name="straat" />
<input type="text" name="huisnummer" />
<input type="submit" name="submit" style="display: none" />
</form>
<h1>Does work in Internet Explorer:</h1>
<form action="index.php" method="post">
<input type="text" name="naam" />
<input type="submit" name="submit" style="visibility: hidden" />
</form>
<hr />
<form action="index.php" method="post">
<input type="text" name="straat" />
<input type="submit" name="submit" style="display: none" />
</form>
Any suggestions would be great!
|