FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


$_POST['name of form????']?





alalex
Once you have submitted a form, can you check if exists by writing:
Code:
if(!$_POST['login']){
FORM
}else{
echo 'Form submitted!';
}
???
Question
mathiaus
Are you asking if this works? Doesn't for me Neutral

Anyway name your submit button and check that!
Code:
<?php
if ($_POST['submit']) {
echo "This works";
}
?>

<form action="" method="post">
<input type="submit" name="submit">
</form>
alalex
OK, thanks, I thought that the $_POST['whatever'] meant the name of the form, and not the name of the button...

Thanks!
Related topics
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.