dt
11-22-2004, 05:42 AM
Is there anything wrong:<this form also can be accessed at http://rugalaxy.com/testform.htm> Not working on my web where as it works perfectly on my local server.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>User ID</title>
</head>
[b]
<form action="./test.php" method="post" name="user"><div class="right"><table summary="" border="0" cellpadding="2" cellspacing="0"><tr><td class="right">User ID:</td><td><input type="text" value="" name="id" size="25"></td></tr><tr><td class="right">Password:</td><td><input type="password" value="" name="pw" size="25"></td></tr><tr><td></td><td><input type="submit" value="LOG IN">&nbsp;<a href="./guest/index.php/" class="topbutton">GUEST</a></td></tr></table></div></form>
</body>
</html>
<?php
if (empty($id)) {
echo ("
<h3 align=\"center\">
You did not type in your username.
</h3>
");
exit;
}
if (empty($pw)) {
echo ("
<h3 align=\"center\">
You did not type in your password.
</h3>
");
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>User ID</title>
</head>
[b]
<form action="./test.php" method="post" name="user"><div class="right"><table summary="" border="0" cellpadding="2" cellspacing="0"><tr><td class="right">User ID:</td><td><input type="text" value="" name="id" size="25"></td></tr><tr><td class="right">Password:</td><td><input type="password" value="" name="pw" size="25"></td></tr><tr><td></td><td><input type="submit" value="LOG IN">&nbsp;<a href="./guest/index.php/" class="topbutton">GUEST</a></td></tr></table></div></form>
</body>
</html>
<?php
if (empty($id)) {
echo ("
<h3 align=\"center\">
You did not type in your username.
</h3>
");
exit;
}
if (empty($pw)) {
echo ("
<h3 align=\"center\">
You did not type in your password.
</h3>
");
exit;
}
?>