Forum Moderators: open
Currently I have a form that has no submit button to it, however the information to the form is processed via php when a link is clicked (the link has a php variable).
What I want to know is, can I tie the submit buttons functionality to a standard <a href="" onclick=""> that will simulate as though a submit button has been pressed or do i have to create a submit button and just live with it?
Thanks for any suggestions
Solution was generically:
Head
<SCRIPT language="JavaScript">
function submitform()
{
document.the_form.submit();
}
</SCRIPT>
Body
<a href="javascript: submitform()" name="submit" onclick="window.location.href='index.php'">Submit</a>
And this both submitted the form and redirected as necessary.
Thanks again