Why not have hidden input fields in the form that you update just before
submitting the form?
function beforeSubmit()
{
document.form1("Pro_0_N0").value = "ENAME0" ;
}
<form name="form1" method="post" action="">
<INPUT type=hidden name=Pro_0_N0>
</form>
Cheers,
Anil
----- Original Message -----
From: "Peter Crane" <bluemight2000@y...>
To: "javascript" <javascript@p...>
Sent: Tuesday, April 24, 2001 10:36 AM
Subject: [javascript] How to submit variables by the Post method?
> Dear all
>
> Anyone know how to submit a bunch of variables in javascript using post?
> I tried adding the variables as form elements like this
> for1.elements[form1.length].name="variable1" but it doesnt work. Very
> greatful if you could help.
>
> Many thanks...
>
>
> <html>
> <head>
> <title>Untitled Document</title>
> <script language="javascript">
>
>
> form1.elements[form1.length].name = "Pro_0_N0";
> form1.elements[form1.length].value="ENAME0";
>
> document.form1.submit();
>
> </script>
>
> </head>
>
> <body bgcolor="#FFFFFF">
> <form name="form1" method="post" action="">
> </form>
>
>
> </body>
> </html>
>
>