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

PHP login form help (Done Most of It)
Hi i am having a problem, when i try logging in it is always saying "Invalid Login" im not

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

[RESOLVED] Socket/Port remains open after app crashes
I'm having this problem with a networked app in vb.net.

If the program exits normally the por

PHP Code To Change Font Color in Table Cell
I would appreciate help with the following snippet of my php code. I am just trying to change the f

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

iMatch stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

ORA-01017: invalid username/password; logon denied
Dear All,

I am facing problem in taken backup from db13 it comes up with the following l

Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net a

smart reading from a text file
Hello there fellow coders, i was wondering if one of you wouldnt mind helping me with this problem i

Php - mysql store data and use it later?
Hi, i' making a login page at the moment, however my username + password is stored many different pl

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