Hello to all
I have a form in a php script with some inputs.
With this form I like te send a javascript variable to the
next php script.
Every Input are transmittet to the next value but the
caddie value will not be send!
I used the following command in the javascript area:
document.form1.caddie.value = commande;
I don't have a input on caddie!
Many thanks in advance for your help.
Regards
Otto
A view of the two scripts:
Php script 1
************
..
<FORM NAME="form1" onSubmit="return form_validator(this)"
ACTION="order_final.php" METHOD=post>
<SCRIPT language="JavaScript"><!-- //script hider
var commande = ""
function form_validator(theForm)
...
...
// send value commande with the form
document.form1.caddie.value = commande;
...
Return (true);
}
</SCRIPT>
...
<INPUT TYPE=text NAME="email" VALUE="" SIZE=40>
...
<INPUT TYPE=submit NAME=Submit VALUE="<?php echo
$txt_send_order ?>" >
...
</FONT>
...
Php script 2:
*************
<?php
$no_comm = date("ymjHis");
// required variables
require("config.php");
$message ="IP: $REMOTE_ADDR Host: $REMOTE_HOST
Commande No.: $no_comm
$email
$company
$name
$caddie
Total $txt_currency: $total
";
mail("$receipt,$email", "Re: Online Order", "$message",
"From:$receipt");
?>