Hi! Friends,
Can any one of you help me out of this. My code reads as such.
-____________________________________________________
<script language="JavaScript">
function verifyInfo()
{
alert("In Verify");
for(i=0;i<10;i++)
{
if(document.Firstform.elements[i].value="")
{
document.Firstform.elements[i].value="NULL";
}
}
execute();
}
function execute()
{
alert("In execute");
document.Firstform.action="http://localhost/jewel/stock_items_data.asp";
document.Firstform.submit()
}
</script>
<form method="POST" name="Firstform" onSubmit="return verifyInfo()">
<!-- other codes here -->
<input type =submit>
This code is not working. My job is to pass null values in whichever element the user has not entered the data. Then the data is inserted into the database.
Thanks.
Navin,.
Can any one of you help me out of this. My code reads as such.
-____________________________________________________
<script language="JavaScript">
function verifyInfo()
{
alert("In Verify");
for(i=0;i<10;i++)
{
if(document.Firstform.elements[i].value="")
{
document.Firstform.elements[i].value="NULL";
}
}
execute();
}
function execute()
{
alert("In execute");
document.Firstform.action="http://localhost/jewel/stock_items_data.asp";
document.Firstform.submit()
}
</script>
<form method="POST" name="Firstform" onSubmit="return verifyInfo()">
<!-- other codes here -->
<input type =submit>
This code is not working. My job is to pass null values in whichever element the user has not entered the data. Then the data is inserted into the database.
Thanks.
Navin,.
Comment