I've got a very basic form, like so:
Expand|Select|Wrap|Line Numbers
- <form method="post" name="shra" action="http://url.com">
- <input type="submit" name="Submit" value="Submit">
- </form>
Expand|Select|Wrap|Line Numbers
- <?php
- if(isset($_POST['Submit'])) {
- echo "POST!"; die;
- }
- ?>
Now, I'm trying to achieve a similar thing though JavaScript since I didn't want to use an actual button for another implementation:
Expand|Select|Wrap|Line Numbers
- <span onclick="document.shra.submit();">Submit</span>
Any suggestions please chaps?
Many thanks