Post, not working, please help


Posted on 16th Feb 2014 07:03 pm by admin

The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /students/06/php/index.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.mesickonline.com Port 80

My code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?
$truck=$_POST["bowser"];
if ($truck= "ford")
echo("hello peeps");
elseif ($truck= "chevy")
echo("don't drive chevys");
elseif ($truck= "dodge")
echo("get a real truck");
else
echo("type in your favorite vehical brand");
$bowser=fopen('index.html','a');
fwrite($bowser,$truck);
?>
<html>
<body>
</body>
</html>
</body>
</html>

No comments posted yet

Your Answer:

Login to answer
285 Like 30 Dislike
Previous forums Next forums
Other forums

Preserving user-entered linebreaks
Hi, I'm building a web 2.0 thingy from scratch and I wanna display text which users input. It's all

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

downloading a file as HTML
Hi.
I'm rather confused with forcing a download. I just want to save dynamic content (from $_SESS

Can anyone give me some link on .htaccess tutorial
i wish to have friendly url using .htaccess, but no idea yet about this

Hope that anyone cou

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

frames get header location..
i have two frames, one top, one bottom. how do i do a form on the bottom frame that gives me the ur

Problem with creating FI documents
Hi, Experts!

when i create Fi doc. with standart transaction, i ve been had such problem

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

PHP Cannot redeclare class
I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot rede

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash