473,413 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

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 1936
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

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

Similar topics

6
by: Shabam | last post by:
A web application of mine developed using C# + MS SQL runs fine normally. However when I stress test it with a load testing software (using about 60 simultaneous users) some instances start...
3
by: Eamonn O'Connell | last post by:
Hi, We have an ASP.net application, where we dynamically add controls, in the Page_Load. Occasionally, when the user posts back the page (e.g. clicks Save button on the page), we get a "Failed...
3
by: Torrent | last post by:
When Trying to Load an XSLT File with the XslTransform i got a rather annoying Exception being thrown "System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown...
3
by: StephenRichter | last post by:
I have installed the trial of db2 enterprise server on my w2k PC. Have also installed fix pack 8 of that product. I am using it to connect from an asp.net web page to an IBM as400. the 400 is...
0
by: M | last post by:
Hi There, I am having lot of trouble getting out the ASP.NET "dll hell", i hope i can find the help here. i have coded a simple page using Visual Studio compiled it. keep on getting works on my...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
4
by: Richard Bysouth | last post by:
Hi I am running a site built on asp.net 1.1 on a windows server 2003 (which is running asp.net 2.0 - shared hosting at my webhost). The site is low traffic and very simple (mostly static text...
2
by: sck10 | last post by:
Hello, I have a web page that has a GridView and a FormView, each in its own panel. The GridView shows a list of records in a database. When a row in the GridView is selected the FormView...
0
by: Alka2378 | last post by:
I developed an application with some pages.. I m trying to use one page ino another page.. first page :- TreeView.aspx, class name TreeView in second page Management.aspx i had writtene <%@...
5
by: =?Utf-8?B?TWF0Y29u?= | last post by:
Hello, I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a javascript function (myfunction) defined in the <headof that master page. Is there a way to run the function...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.