ziggy00001
Programmer
After evaluating whether the account number entered into a form input box by the user, is NOT a current account number(ie customer not in local db).
I need to be able to take this account number and use is it to create a dynamic URL which would then be sent to a server to be processed to retrieve the new customer's personal info.
What is the best way to either pass a variable from the javascript or the value of the input box and how can I do it.
Thanks for everyones help.
I need to be able to take this account number and use is it to create a dynamic URL which would then be sent to a server to be processed to retrieve the new customer's personal info.
What is the best way to either pass a variable from the javascript or the value of the input box and how can I do it.
Code:
<script language="javascript">
<!--
validate()
{
// If customer is in database, use account number to set to current customer
if (strAnswer == true)
{
// set customer
strSetCustomer = rs("ID");
qsBridge.FireEvent("SetCustomer", strSetCustomer);
event.returnValue=false;
}
}
//-->
</script>
</head>
<body scroll="no" STYLE="position:absolute; top:0px; left:0px; width:100%; height:100%; padding:10px; font:bold 13pt verdana; color:white;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#8eb6d9', EndColorStr='#000000')">
<form name="accountID" method="get" onsubmit="javascript:validate()" action="[URL unfurl="true"]http://url?p="[/URL][b]form text1 value, syntax?[/b]>
Scan Tape ID :<input type=text name="text1" size="20">
<input type=submit name="text2" Value="OK">
</form>
<script language="javascript" src="copy.js">
</script>
<script language="javascript">
document.accountID.text1.focus();
</script>
Thanks for everyones help.