SageFix. LetsFix!  
Current Location : Home > Web Development > JavaScript > Reset button submitting form instead of clearing boxes > Post Share/Save/Bookmark    

Main Menu
SageFix - Let's Fix

Board Categories
    Web Site Designing
- Graphics
    Web Development
- .NET
- Classic ASP
- JavaScript
- PHP
    WebSite Management
- Promotion Techniques
- Search Engine Optimization
    Databases
- MySQL

Tutorials

Database Connection Strings

  Contact Us


Reset button submitting form instead of clearing boxes      Jul 28, 2002, 11:43 990287
  
This is the whole page it's just a login page with 2 input boxes and a login and reset button. The reset button clears the form, but then tries to log in as well?
Code:
<HTML><HEAD><TITLE>Login in to XYZPrint</TITLE><TABLE WIDTH="100%" border=0><TD WIDTH=62 VALIGN=BOTTOM><IMG SRC="XYZPrint1.png"></TD><TD VALIGN=BOTTOM WIDTH=250><FONT FACE="COMIC SANS MS" SIZE=6>User Login</FONT></TD><TD ALIGN=RIGHT>	<TABLE bgcolor=#F0E68C ALIGN=RIGHT>	<TD BGCOLOR="F0E68C" ALIGN=CENTER><FONT FACE="COMIC SANS MS" SIZE=1>	If you have authority to modify  	<BR>or add data please login here:	</FONT></TD>	<TR>	<TD BGCOLOR="F0E68C" ALIGN=CENTER><FONT FACE="COMIC SANS MS" SIZE=1>	<A HREF="/XYZPrint/Admin/admin_menu.php">Administrator</A>	</FONT></TD>	</TR>	<TR>	<TD BGCOLOR="F0E68C" ALIGN=CENTER><FONT FACE="COMIC SANS MS" SIZE=1>	<A HREF="/XYZPrint/SuperUser/suser_menu.php">Super User</A>	</FONT></TD>	</TR>	</TABLE></TABLE></HEAD><FORM METHOD=POST ACTION="logme.php" name="Login"><BODY><BR><BR><TABLE WIDTH="100%" BORDER=0 ALIGN=CENTER CELLSPACING=0 CELLPADDING=5><TR><TD ALIGN=CENTER COLSPAN=2 BGCOLOR="D3D3D3"><FONT FACE="COMIC SANS MS" SIZE=3>Please login using your User Name and the Password provided during registration.</FONT></TD></TR><TR>	<TD COLSPAN=2>&nbsp</TD></TR><TR><TD ROWSPAN=6></TD><TD><B><FONT FACE="COMIC SANS MS" SIZE=2>User Name :</FONT></B></TD></TR><TR><TD><INPUT TYPE=text SIZE=15 NAME="username"></TD></TR><TR><TD WIDTH="57%"><B><FONT FACE="COMIC SANS MS" SIZE=2>Password :</FONT></B></TD></TR><TR><TD><INPUT TYPE=password SIZE=15 NAME="password"></TD></TR><TR>	<TD>&nbsp</TD></TR><TR>	<TD>	<input type="image" src="weblogos/log_in.gif" name="submit" onClick="javascript:document.Login.submit()">	&nbsp&nbsp&nbsp&nbsp	<input type="image" src="weblogos/clear.gif" name="reset" onClick="javascript:document.Login.reset()">	</TD></TR></TABLE><BR><BR><BR><TABLE WIDTH="100%"><TR>	<TD ALIGN=CENTER VALIGN=BOTTOM>	<a href="user_entername.html"><IMG BORDER="0" SRC="weblogos/change_password.gif"></a>	<FONT FACE="COMIC SANS MS" SIZE=1><BR>If you cannot remember your password,	<BR>click to change it.</FONT>	</TD>	<TD ALIGN=CENTER VALIGN=BOTTOM>	<a href="Registration.html"><IMG BORDER="0" SRC="weblogos/register.gif"></a>	<FONT FACE="COMIC SANS MS" SIZE=1><BR>Click if you haven't registered yet.<BR>&nbsp</FONT>	</TD></TR></TABLE></FORM></BODY></HTML>
??? Anyone?

 









Subscribe to our mailing list
email


Current Location : Home > Web Development > JavaScript > Reset button submitting form instead of clearing boxes > Post Share/Save/Bookmark    

Development problem? SageFix is completely free -- paid for by advertisers and donations. Click here to Contact Us If you have any query. Enjoy!
Request processed in 6.0E-5 seconds Home - Contact Us - Terms Of Service - Privacy Policy - Copyrights - Top
Advertisements do not imply our endorsement of that product or service.
Current server time now is 06-Sep-2010 07:03:13
Copyright © 2009 Sagefix Inc. All rights reserved.
Powered By SageFix