469,270 Members | 1,733 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

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

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
1 1767
ronverdonk
4,258 Expert 4TB
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.

Similar topics

6 posts views Thread by Shabam | last post: by
3 posts views Thread by Eamonn O'Connell | last post: by
reply views Thread by M | last post: by
4 posts views Thread by Don Wash | last post: by
reply views Thread by Alka2378 | last post: by
5 posts views Thread by =?Utf-8?B?TWF0Y29u?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.