By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,996 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,996 IT Pros & Developers. It's quick & easy.

to load php page - getting error like - error on page

P: 3
please help me out
the following is the small code i have

<html>
<head>
<script type="text/javascript">
function validate()
{

if (document.abc.region.value==0)
{
alert('Select Region');
document.abc.region.focus();
return false;
}

if (document.abc.subject.value==0)
{
alert('Select Subject');
document.abc.subject.focus();
return false;
}

if ((document.abc.canname.value=="") || (document.abc.canname.value==" "))
{
alert('Enter Candidate Name');
document.abc.canname.focus();
return false;
}

document.abc.action = 'saverecord.php';
document.abc.submit()
}
</script>


</head>
<body bgcolor="aliceblue">

<form name="abc" id="abc" method="post">
<table name="primary" align="Center" border=1 >

<tr>
<td align="left" width=5%><font face="verdana" size=2> <b>1.</font><font color=red size=3><b> * </b></font></td></td>
<td align="left"><font face="verdana" size=2 width=200>
<b>Region:
</b></font>

<td align="left">
<select name="region" >
echo "<option value=0 selected>(Please select:)</option>
echo "<option value=B>Bangalore</option>"
echo "<option value=M>Mumbai</option>"
}

</select>
</td>
</tr>

<tr>
<td align="left" width=5%><font face="verdana" size=2> <b>2.</font><font color=red size=3><b> * </b></font></td></td>
<td align="left"><font face="verdana" size=2>
<b>Subject :</b></font>
<td align="left">
<select name="subject" onblur="globalfac();">
echo "<option value=0 selected>(Please select:)</option>
echo "<option value=A>Arts</option>"
echo "<option value=B>Commerce</option>"
}

</select>
</td>
</tr>

<tr>
<td align="left" width=5%><font face="verdana" size=2> <b>3.</font><font color=red size=3><b> * </b></font></td></td>
<td align="left"><font face="verdana" size=2>
<b>Name of the Applicant:</b></font>

</td>
<td align="left">
<input type="textbox" name="canname" size=73 maxlength=100>
</td>
</tr>
<tr>
<td align="center"><input type="button" name="submit" value="Submit" onclick="validate();"></td>
</tr>

</table>

</form>

</body>

</html>


after entering the values, and press submit button i am getting error like
error on page.
i am not able to find out the error. please help me out
Dec 6 '06 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
Only if you post your code within php, html or code tags!

Anyway this post does not belong in the PHP forum, but in the JavaScript. I'll transfer it.

Ronald :cool:
Dec 6 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.