![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Programmer
Join Date: Aug 2007
Location: Ohio
Posts: 46
Rep Power: 0
![]() |
Hey guys i was doing some PHP, i am still rather new to it, and i was making a form i wanted it to take a name the user puts in a basic HTML form and out put it (just the first small step to a user name and pass word form). I coded it up what i thought was corectly and ran it i used the method post in the form, when i hit submit it brings up an error
Quote:
by the way i use hostgator.com Edit: I tried using Get rather then post and it din't give me the error but it did not do anything eaither just sat there Thanks in advanced ~Kelvoron
__________________
Good better best, never let it rest, untill your good is better and your better is the best. |
|
|
|
|
|
|
#2 |
|
Professional Programmer
|
Posting your .php file would be helpfull.
__________________
JG-Webdesign |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jun 2007
Posts: 88
Rep Power: 2
![]() |
check the form action, be sure it's pointing to a php file..
<form action="file.php" method="post" name="formName"> Last edited by MiKuS; Sep 10th, 2007 at 8:16 PM. |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Aug 2007
Location: Ohio
Posts: 46
Rep Power: 0
![]() |
Ok thanks. I have the PHP running inside of the acual HTML page it had worked with the free host so i figured it was ok. I will make a PHP driver when i am done working on the police departments Explorer website, and post weather it worked. thanks.
__________________
Good better best, never let it rest, untill your good is better and your better is the best. |
|
|
|
|
|
#5 |
|
Programmer
Join Date: May 2007
Posts: 52
Rep Power: 2
![]() |
Re: Method Post not allowd?
did you double check everything? also if you did and you still get your error it mght be that your hoster doesnt support PHP 4 or 5.
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Dec 2007
Posts: 4
Rep Power: 0
![]() |
Re: Method Post not allowd?
The way i do things like this is to have a html file and a php file , not using php in the html file.
So in a html file you would do summat like <form action="script.php" method="post" name="Moooo"> <input name="username" type="text"/> Username </form> Then in the php. $username = $_POST['username']; echo $username; Sometimes i liek to use the STRreplace just to clean the username of odd chars. $username = str_replace (" ", "_", $username); Hope this helps in any way ![]() |
|
|
|
|
|
#7 |
|
11 years old
Join Date: Nov 2007
Posts: 79
Rep Power: 1
![]() |
Re: Method Post not allowd?
Perhaps your host blocked it.
__________________
iload_0 iconst_1 ishl or iload_0 iconst_2 idiv or iload_0 iconst_2 iconst_1 imul idiv [1] & [2] use the smallest stack size |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTTP Status 405 - HTTP method POST is not supported by this URL | hemanth.balaji | Java | 5 | Mar 21st, 2006 2:48 AM |
| Median/Mode in arrays? {Need help} | Java|Tera | Java | 27 | Nov 29th, 2005 10:50 AM |
| How to post a question | nnxion | C++ | 10 | Jun 3rd, 2005 11:53 AM |
| How to post a question | nnxion | C++ | 0 | Jun 3rd, 2005 8:55 AM |
| How to post a question | nnxion | C | 0 | Jun 3rd, 2005 8:55 AM |