THis is my code. What im trying to accomplish is the user fills out
the form then when they hit submit it displays what the entered on the
samne page but i get this error message when I hit submit
Method Not Allowed The requested method POST is not allowed for the
URL /rob.html.
Here is the code. Any helpis greatly appreciated I cant figure this
out at all i have tried so many different combinations.
<?php
$firstname=$_PO ST["firstname"];
$lastname=$_POS T["lastname"];
$phone=$_POST["phone"];
$mobile=$_POST["mobile"];
$besttimetocall =$_POST["besttimetocall "];
$city=$_POST["city"];
$bizname=$_POST["bizname"];
if (!isset($_POST['submit'])) {
?>
<html>
<head>
<title>Contract er INFO</title>
</head>
<body>
<form action="rob.htm l" method="post">
First Name:<input type="text" size="30" maxlength="30"
name="firstname "><br>
Last Name:<input type="text" size="30" maxlength="30"
name="lastname" ><br>
Phone:<input type="text" size="30" maxlength="30" name="phone"><b r>
Mobile:<input type="text" size="30" maxlength="30" name="mobile">< br>
Best Time To Call:<input type="text" size="30" maxlength="30"
name="besttimet ocall"><br>
Select your city:<br>
<select name="city">
<option value="Toronto" >Toronto</option>
<option value="Markham" >Markham</option>
<option value="Barrie"> Barrie</option>
</select><br>
buisiness Name:<input type="text" size="30" maxlength="30"
name="bizname"> <br>
<input type="submit" value="submit" name="submit">
</form>
<?
echo "Hello, ".$firstnam e." ".$lastname.".< br>;
echo "We will get back to you at ".$phone.";
}
?>
the form then when they hit submit it displays what the entered on the
samne page but i get this error message when I hit submit
Method Not Allowed The requested method POST is not allowed for the
URL /rob.html.
Here is the code. Any helpis greatly appreciated I cant figure this
out at all i have tried so many different combinations.
<?php
$firstname=$_PO ST["firstname"];
$lastname=$_POS T["lastname"];
$phone=$_POST["phone"];
$mobile=$_POST["mobile"];
$besttimetocall =$_POST["besttimetocall "];
$city=$_POST["city"];
$bizname=$_POST["bizname"];
if (!isset($_POST['submit'])) {
?>
<html>
<head>
<title>Contract er INFO</title>
</head>
<body>
<form action="rob.htm l" method="post">
First Name:<input type="text" size="30" maxlength="30"
name="firstname "><br>
Last Name:<input type="text" size="30" maxlength="30"
name="lastname" ><br>
Phone:<input type="text" size="30" maxlength="30" name="phone"><b r>
Mobile:<input type="text" size="30" maxlength="30" name="mobile">< br>
Best Time To Call:<input type="text" size="30" maxlength="30"
name="besttimet ocall"><br>
Select your city:<br>
<select name="city">
<option value="Toronto" >Toronto</option>
<option value="Markham" >Markham</option>
<option value="Barrie"> Barrie</option>
</select><br>
buisiness Name:<input type="text" size="30" maxlength="30"
name="bizname"> <br>
<input type="submit" value="submit" name="submit">
</form>
<?
echo "Hello, ".$firstnam e." ".$lastname.".< br>;
echo "We will get back to you at ".$phone.";
}
?>
Comment