View Single Post
Old Dec 19th, 2007, 6:04 AM   #6
lynxus
Newbie
 
Join Date: Dec 2007
Posts: 4
Rep Power: 0 lynxus is on a distinguished road
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
lynxus is offline   Reply With Quote