Use inline script:
<script language="JavaScript">
document.formname.submit();
</script>
Or the body OnLoad event:
<body onLoad="document.fromname.submit();">
-----Original Message-----
From: Roger Collis [mailto:racol@g...]
Sent: Tuesday, October 23, 2001 3:17 PM
To: javascript
Subject: [javascript] form submission
Can anyone tell me how to submit an HTML form to the server automatically,
WITHOUT having to click a button? The form is populated with hidden fields
for submission to a database and I want the process to happen when the
page loads or when the page unloads.
Roger Collis
North Wales UK