Topic: how to change the page
hi what code do i need to change if i want users who logged in invalid information to be redirected to another page instead of the original log in page.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<title>Movers Community</title>
<LINK href="style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.corner.js"></script>
<script type="text/javascript" src="functions.js"></script>
</head>
<body>
<table width=98% cellpadding=0 cellspacing=0 align=center
style='height:100%;border-right:2px solid #999999;border-left:2px solid #999999'><tr><td><img
src="freightliner-trucks-classic-pg1.jpg" alt=""
style="width: 100%; height: 221px;" width=100%></td></tr>
<tr><td style='background:#1B427B' class=menu>
<a href='index.php'>Home</a>
<a href='aboutus.php'>About Us</a>
<a href='contactus.php'>Contact Us</a>
<a href='benefits.php'>Benefits</a>
<a href='login2.php'>Login/Register</a>
<a href='links.php'>Links</a>
<div style='width:100%;background:url(topFade.gif);font-size:1px;height:8px'> </div>
</td></tr>
<tr><td style='background:white;height:100%;width:100%;padding:10px' valign=top><h1><img src='07.png'> Login / Register</h1>
<span class=title>LOGIN</span>
<form method=post action='login.php'>
<table align=center style='border:1px solid #9999ff;width:250px; background:#eeeeff'>
<tr>
<td>
Email:<br>
<input style='margin-left:20px;width:150px' name=email value=''> <br>
Password:<br><input style='margin-left:20px;width:150px' AUTOCOMPLETE=OFF name=password type=password>
</td></tr><tr><td align=right>
<input type=submit value='Login'>
</td>
</tr>
</table>
</form>
<span class=title>OR REGISTER</span>
<form method=post action='login.php'>
<input name=register type=hidden value=1>
<table align="center" cellpadding="0" cellspacing="0" height="527"
width="544" style='border:1px solid #2165a5;background:#eeeeee'>
<tbody>
<tr bgcolor="#2165a5">
<td colspan="2" height="26"> <span style='color:white'> <strong>Company
Information</strong> </span></td>
</tr>
<tr>
<td class="small" height="22" colspan=2> <span class='req'>*</span> Required Fields</td>
</tr>
<tr>
<td height="26" width="200" align=right>
Company Name <span class='req'>*</span>
</td>
<td width="286"><input class="textbox" maxlength="50" size="25" name="name" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right"> Street </div>
</td>
<td><input class="textbox" maxlength="50" size="25" name="street" value=''>
</td>
</tr>
<tr>
<td height="26">
<div align="right">City </div>
</td>
<td><input class="textbox" maxlength="50" size="25" name="city" value=''>
</td>
</tr>
<tr>
<td height="28">
<div align="right"><label id="VDaemonID_3">State<span class='req'>*</span> </label></div>
</td>
<td>
<select name="state">
<option value="" selected="selected">-Select State-</option>
<option value='AL' >AL</option><option value='AK' >AK</option><option value='AZ' >AZ</option><option value='AR' >AR</option><option value='CA' >CA</option><option value='CO' >CO</option><option value='CT' >CT</option><option value='DE' >DE</option><option value='DC' >DC</option><option value='FL' >FL</option><option value='GA' >GA</option><option value='HA' >HA</option><option value='ID' >ID</option><option value='IL' >IL</option><option value='IN' >IN</option><option value='IA' >IA</option><option value='KS' >KS</option><option value='KY' >KY</option><option value='LA' >LA</option><option value='ME' >ME</option><option value='MD' >MD</option><option value='MA' >MA</option><option value='MI' >MI</option><option value='MN' >MN</option><option value='MS' >MS</option><option value='MO' >MO</option><option value='MT' >MT</option><option value='NE' >NE</option><option value='NV' >NV</option><option value='NH' >NH</option><option value='NJ' >NJ</option><option value='NM' >NM</option><option value='NY' >NY</option><option value='NC' >NC</option><option value='ND' >ND</option><option value='OH' >OH</option><option value='OK' >OK</option><option value='OR' >OR</option><option value='PA' >PA</option><option value='RI' >RI</option><option value='SC' >SC</option><option value='SD' >SD</option><option value='TN' >TN</option><option value='TX' >TX</option><option value='UT' >UT</option><option value='VT' >VT</option><option value='VA' >VA</option><option value='WA' >WA</option><option value='WV' >WV</option><option value='WI' >WI</option><option value='WY' >WY</option> </select>
</td>
</tr>
<tr>
<td height="26">
<div align="right">Zip Code </div>
</td>
<td><input class="textbox" maxlength="10" size="10" name="zipcode" value=''>
</td>
</tr>
<tr>
<td height="26">
<div align="right">Website </div>
</td>
<td><input class="textbox" maxlength="512" size="25" name="website" value=''>
</td>
</tr>
<tr bgcolor="#2165a5">
<td colspan="2" height="26"> <span
style='color:white'>Contact Information </span></td>
</tr>
<tr>
<td height="26">
<div align="right"><label id="VDaemonID_4">Contact First Name
<span class='req'>*</span> </label></div>
</td>
<td><input class="textbox" maxlength="25" size="25"
name="firstName" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right">Contact Last Name </div>
</td>
<td><input class="textbox" maxlength="25" size="25"
name="lastName" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right"><label id="VDaemonID_5">Contact Work Phone
<span class='req'>*</span> </label></div>
</td>
<td><input class="textbox" maxlength="25" size="15"
name="workPhone" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right">Contact Cell Phone </div>
</td>
<td><input class="textbox" maxlength="25" size="15"
name="cellPhone" value=''></td>
</tr>
<tr>
<td height="26">
<div align="right">Contact Fax Number </div>
</td>
<td><input class="textbox" maxlength="25" size="15" name="fax" value=''></td>
</tr>
<tr>
<td height="26">
<div align="right"><label id="VDaemonID_6">Contact E-mail
<span class='req'>*</span> </label></div>
</td>
<td><input class="textbox" maxlength="75" size="25"
name="email" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right"><label id="VDaemonID_6">Required Password
<span class='req'>*</span> </label></div>
</td>
<td><input class="textbox" maxlength="75" size="25"
name="password" value=''> </td>
</tr>
<tr bgcolor="#2165a5">
<td colspan="2" height="26"> <span
style='color:white'>Truck Information</span></td>
</tr>
<tr>
<td height="26">
<div align="right"><label id="VDaemonID_7">DOT Number
<span class='req'>*</span> </label></div>
</td>
<td><input class="textbox" maxlength="8" size="8"
name="dot" value=''> </td>
</tr>
<tr>
<td height="26">
<div align="right">MC Number </div>
</td>
<td><input class="textbox" maxlength="6" size="6"
name="mc" value=''></td>
</tr>
<tr>
<td height="28">
<div align="right">Number of Trucks </div>
</td>
<td>
<select name="trucks">
<option value="" selected="selected">-Select-</option>
<option value='0' selected>0</option><option value='1' >1</option><option value='2' >2</option><option value='3' >3</option><option value='4' >4</option><option value='5' >5</option><option value='6' >6</option><option value='7' >7</option><option value='8' >8</option><option value='9' >9</option><option value='10' >10</option><option value='11' >11</option><option value='12' >12</option><option value='13' >13</option><option value='14' >14</option><option value='15' >15</option><option value='16' >16</option><option value='17' >17</option><option value='18' >18</option><option value='19' >19</option><option value='20' >20</option><option value='21' >21</option><option value='22' >22</option><option value='23' >23</option><option value='24' >24</option> </select>
</td>
</tr>
<tr>
<td colspan="2" height="28">
<div align="center"><input value="Continue" name="cmdSubmit"
type="submit"> </div>
</td>
</tr>
</tbody>
</table>
</form>
</td></tr>
<style type="text/css">
<!--
.style1 {
color: #000000;
font-weight: bold;
}
.style3 {color: #0000FF; font-weight: bold; font-size: medium; }
-->
</style>
<tr><td style='background:white'><div align="center">
<!-- START Flash Logo HTML Code - Copy and Paste All This -->
<a href="http://www.foreclosurefreesearch.com/"><img src="http://www.foreclosurefreesearch.com/banners/ban_rsp02.gif" alt="text" width="347" height="61" border="0"/></a>
<!-- END Flash Logo HTML Code -->
<p><u><a href="contactus.php">Contact Us</a></u> <u><a href="benefits.php">Benefits</a></u> <u><a href="aboutus.php">About us</a></u> <u><a href="privacypolicy.php">Privacy Policy</a></u></p>
<h6 class="style3"><span title="12.158.191.42">©</span>2009 Movers Community All Rights Reserved </h6>
</div>
<hr width=50% style='color:#1B427B'></td></tr>
</body></html>
