TruthInSatire
Programmer
I've done this 100,000 times before but now it doesn't want to work.
I'm trying to submit a form using a hyperlink vice a submit button
//function
I've also tried the name of the form, that didn't work either.
// form tag
// hyperlink
We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
I'm trying to submit a form using a hyperlink vice a submit button
//function
I've also tried the name of the form, that didn't work either.
Code:
<SCRIPT language="JavaScript">
function submitform()
{
document.forms[0].submit();
}
</SCRIPT>
// form tag
Code:
<form name = "formName" method = "post" action = "pageName.htm">
// hyperlink
Code:
<a href="javascript: submitform()" class="btn">
We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.