HTTP Error 405.0 - Method Not Allowed

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

HTTP Error 405.0 - Method Not Allowed

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.

Hello I keep getting this error when I try to submit the form code which is supposed to have the welcome.php spit the information i put in back to me. 

Can someone tell me why so I can fix it.

welcome.php X form.html
PHP (global code)
<html>
<body>
Welcome <?php echo $_POST["firstname"]; ?><br>
Your Last Name is: <?php echo $_POST["lastname"]; ?>
Your Telephone Number is: <?php echo $_POST["TelephoneNumber"]; ?>
Your Favorite Color is: <?php echo $_POST["FavoriteColor"]; ?>
Your favorite doctor is: <?php echo $_POST["FaveDoctor"] ?>
</body>
</html>
PHP (in
Transcribed Image Text:welcome.php X form.html PHP (global code) <html> <body> Welcome <?php echo $_POST["firstname"]; ?><br> Your Last Name is: <?php echo $_POST["lastname"]; ?> Your Telephone Number is: <?php echo $_POST["TelephoneNumber"]; ?> Your Favorite Color is: <?php echo $_POST["FavoriteColor"]; ?> Your favorite doctor is: <?php echo $_POST["FaveDoctor"] ?> </body> </html> PHP (in
welcome.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
24
25
26 27 28 29 30 31 2 33 34 35 36 37 38 39 40 皿 ² 3 u 45
32
41
42
<li><input type="checkbox" name="genre" value="horror" checked> horror</li>
<li><input type="checkbox" name="genre" value="action" checked> action</li>
<li><input type="checkbox" name="genre" value="adventure"> adventure</li>
15 <li><input type="checkbox" name="genre" value="romance"> romance</li>
16
<li><input type="checkbox" name="genre" value="science fiction "checked> science fiction</li>
<li><input type="checkbox" name="genre" value="fantasy"> fantasy</li>
17
18
19
20
21
<option>William Hartnell</option>
22 <option>Patrick Troughton</option>
23 <option>Jon Pertwee</option>
<option>Tom Baker</option>
<option>Peter Davison</option>
<option>Colin Baker</option>
<option>Sylvester McCoy</option>
<option>Paul McGann</option>
<option>Christopher Eccleston</option>
<option>David Tennant</option>
<option>Matt Smith</option>
<option>Peter Capaldi</option>
<option>Jodie Whittaker</option>
Gatwa</option>
<option>Ncuti
</select>
43
44
<!DOCTYPE HTML>
<html>
<body>
form.html
<form action="welcome.php" method="post">
First Name: <input type="text" name="firstname"><br>
Last Name: <input type="text" name="lastname"><br>
Telephone Number: <input type="tel" name="TelephoneNumber"><br>
X
Favorite Color: <input type="text" name="FavoriteColor"><br>
<p>What genre of movies do you watch?</p>
<ul>
</p>
</ul>
<p>Who is your favorite doctor from the hit science fiction show "Doctor Who"?
<select name="FaveDoctor">
<p><label for="FavDoctor">Tell me why is this your favorite doctor actor or actress:</label></p>
<textarea name="FavDoctor" rows="4" cols="64">
This is because...</textarea>
</p>
<input type="submit">
</form>
</body>
[</html>
Transcribed Image Text:welcome.php 1 2 3 4 5 6 7 8 9 10 11 12 13 14 24 25 26 27 28 29 30 31 2 33 34 35 36 37 38 39 40 皿 ² 3 u 45 32 41 42 <li><input type="checkbox" name="genre" value="horror" checked> horror</li> <li><input type="checkbox" name="genre" value="action" checked> action</li> <li><input type="checkbox" name="genre" value="adventure"> adventure</li> 15 <li><input type="checkbox" name="genre" value="romance"> romance</li> 16 <li><input type="checkbox" name="genre" value="science fiction "checked> science fiction</li> <li><input type="checkbox" name="genre" value="fantasy"> fantasy</li> 17 18 19 20 21 <option>William Hartnell</option> 22 <option>Patrick Troughton</option> 23 <option>Jon Pertwee</option> <option>Tom Baker</option> <option>Peter Davison</option> <option>Colin Baker</option> <option>Sylvester McCoy</option> <option>Paul McGann</option> <option>Christopher Eccleston</option> <option>David Tennant</option> <option>Matt Smith</option> <option>Peter Capaldi</option> <option>Jodie Whittaker</option> Gatwa</option> <option>Ncuti </select> 43 44 <!DOCTYPE HTML> <html> <body> form.html <form action="welcome.php" method="post"> First Name: <input type="text" name="firstname"><br> Last Name: <input type="text" name="lastname"><br> Telephone Number: <input type="tel" name="TelephoneNumber"><br> X Favorite Color: <input type="text" name="FavoriteColor"><br> <p>What genre of movies do you watch?</p> <ul> </p> </ul> <p>Who is your favorite doctor from the hit science fiction show "Doctor Who"? <select name="FaveDoctor"> <p><label for="FavDoctor">Tell me why is this your favorite doctor actor or actress:</label></p> <textarea name="FavDoctor" rows="4" cols="64"> This is because...</textarea> </p> <input type="submit"> </form> </body> [</html>
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY