in reply to
javascript variable & perl
hmm...i'm not quite clear on what exactly you need...if its setting a form variable using javascript and passing it to a perl script, then here's one way to do it
<html>
<head>
<script language="Javascript">
function callSubmitSub() {
var objForm = document.test;
var testvar = objForm.name;
objForm.passedvar1.value = testvar;
alert(objForm.passedvar1.value);}
</script>
</head>
<body>
<form name="test" action="test.pl" method="post" onSubmit="callSubmitS
+ub();">
<input type=hidden name="passedvar1" value="">
<input type=submit value="submit">
</form>
</body>
</html>
this passes the value of the javascript variable into a hidden variable in the form, which in turn is passed to the perl script when the form is submitted.
htht...