...

View Full Version : php post not working



stevey17
03-20-2010, 12:34 AM
i need some help as the post method is not working for me

html code

<form method="post" action="" >
Username: <input type="text" name="username" />
Password: <input type="password" name="user_pass" />
Password again: <input type="password" name="user_pass_check" />
<input type="submit" value="sign up" />
</form>

thanks in advance

masterofollies
03-20-2010, 12:49 AM
You need an ISSET statement when posting a form. Also give your submit button a NAME tag.



if (isset($_POST['submit']))
{
echo 'Form submitted successfully';
}
else {
<form method="post" action="">
Username: <input type="text" name="username" />
Password: <input type="password" name="user_pass" />
Password again: <input type="password" name="user_pass_check" />
<input type="submit" name="submit" value="sign up" />
</form>
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum