On Tue, 09 Aug 2005 10:16:08 -0700, P wrote:
On the site you've provided, it gave this example:
<form name="myform" action="handle-data.php">
Search: <input type='text' name='query'> <A href="javascript:
submitform()">Search</A> </form>
<SCRIPT language="JavaScript">
function submitform()
{
document.myform.submit();
}
</SCRIPT>
What I'm hoping to do is to have a function like that, but takes an
argument for the name of the form. This is probably the wrong syntax
but I think it shows what I want to do:
function submitform(formID)
{
document.formID.submit();
}
IIRC the form name isn't a valid object in any browser.
I think the submit function has to be called in the body of the form...
but I may be wrong about that.
--
"Blessed is he who expects nothing, for he shall never be disappointed."
Benjamin Franklin (I didn't know he was a Buddhist)