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.

Did you know?Explore Trending and Topic pages for more stories like this.

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

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

AutoChoosing a CSS file based on URL
Hey everyone,

I have a site that has multiple URLs and CSS files.

Based on the URL tha

Adding post count
How would I make it so everytime someone clicks submit on my form, their row in the database for the

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

problem with php server update from mid 2009
Hi,

I have this navigation menu on 2 websites which used to work just fine. After a recent up

Problem with coding MySQL query
I'm having heaps of trouble getting one of my PHP/MySQL queries to work for some reason (and the fun

Probably Easy, Need help with Check Boxes in PHP Code
hello,

Thanks for looking this over and helping me out. My problem is I have a online store l

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

Warehouse Management
Hi,

On our system, we have two storage locations ( A and B ) where A is the main factory

Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or b

Warning: mysql_num_rows() supplied argument is not a valid MySQL result resource
This may be simple I just may need another pair of eyes..

When i get records back the below c

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