how do i pass dynamic variable into javascript from input box?

Giganews Newsgroups
Subject: how do i pass dynamic variable into javascript from input box?
Posted by:  sajoc…@gmail.com
Date: Fri, 14 Mar 2008

thanks for your help

depending on a input, I need to change var
checkcaptcha=(t/f)

if true then default else pass????

<SCRIPT LANGUAGE="JavaScript">

function SubmitForm()

{
var CheckCAPTCHA=true
if (CheckCAPTCHA==true)
{
    document.frmLogin.action = "default.asp";
    document.frmLogin.submit();
}
else
{
    document.frmLogin.action = "pass.asp";
    document.frmLogin.submit();

}
}
</SCRIPT>

Replies