Je moet ingelogd zijn om te stemmen.
<form action="" method="post" name="login" id="login"> <input type="hidden" name="form" value="login"> <div align="right"> <input name="username" type="text" class="login" id="username" value="gebruikersnaam" size="35"> <br> <input name="password" type="text" class="login" id="password" value="wachtwoord" size="35"> <br> <input type="image" src="images/login_button.png" alt="Submit" value="Submit" onClick="this.form.submit();"/> </div> </form>
<?php }else{ if(isset($_POST['form'])) { if($_POST['form'] == "login") { echo "login"; } if($_POST['form'] == "register") { echo "register"; } } } ?>
<?php}else{ if(isset($_POST['form'])) { if($_POST['form'] == "login") { echo "login"; } if($_POST['form'] == "register") { echo "register"; } }}?>
<?php if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { //formulier is verstuurd ...
<?phpif( $_SERVER['REQUEST_METHOD'] == 'POST' ) { //formulier is verstuurd...
echo "<pre>" , var_dump($_POST) , "</pre>";
if(isset($_POST['form']))
<input name="actie" type="hidden" id="actie" value="login">