The following code causes this error in netscape navigator version 4.6 but not IE 5.5.
The error message is:
Method Not Allowed
The requested method POST is not allowed for the URL /testaccess/default.htm.
could it be the <% echo $PHPSELF; %>
Thanks for the assistance.
<%
$Message = "" ;
if ($Submit == "Submit") {
//form submitted so connect to database and search license verification table
include("dbconnect.inc") ;
$query = "select * from License_Verification where
Last_Name = '$Appraiser_Last_Name_Entered' and
License_Number = '$License_Number_Entered' and
State = '$State_License_Entered' and
Status = 'A'";
$result = mysql_query($query, $connection) ;
$Verified = mysql_num_rows($result) ;
if ($Verified) {
//license was verified set up a session and with a variable for verified that each enter details will
//check, so that a user cannot just enter data without being verified
session_start();
session_register("SESSION");
/* initialize the SESSION variable if necessary */
if (! isset($SESSION)) {
$SESSION = array();
}
//Store the word verified in the $SESSION["Verified"] variable
$SESSION["Verified"] = "verified" ;
$Message = "verified" ;
} else {
$Message = "not verified" ;
}
}
%>
<head>
<%
//determine if $message is valid and display
if ($Message=="verified") {
echo "<p>Your license data was verified. Please <a href=\"Get_Appraiser_Id_and_Password.php\">click here to continue.</a></p>" ;
exit ;
} else {
if ($Message=="not verified") {
echo "<p><b>Your license data was not verified. Please try again or email our <a href=\"mailto:support@appraisalbank.com\">
support staff.</a> Please include in your email your full name, state you are licensed in, your license number, and your email adddress.</b></p>" ;
}
}
%>
<p>Before we can add your information to our database of appraisers, we must
verify your appraisal license. Please enter the following information.</p>
<form method="POST" action="<% echo $PHPSELF; %>">
<table border="1" class="maincontent" >
<tr>
<td>Last Name: </td>
<td><input type="text" name="Appraiser_Last_Name_Entered" size="20"></td>
</tr>
<tr>
<td>Licensed in which state: </td>
<td><input type="text" name="State_License_Entered" size="4">(Two letter state abbreviation.)</td>
</tr>
<tr>
<td> License Number: </td>
<td><input type="text" name="License_Number_Entered" size="20"></td>
</tr>
<tr>
<td colspan="2"> <p align="center"><input type="submit" value="Submit" name="Submit"></p>
</td>
</tr>
</table>
</form>
<