Je moet ingelogd zijn om te stemmen.
<form id="hetForm" name="hetForm" method="post" action="jeDing" onSubmit="return true">
<input type="hidden" name="action_form_name" value="1" />
if(isset($_POST['action_form_name'])) { // verwerk formulier }
if(isset($_POST['action_form_name'])){ // verwerk formulier}
<form method="post" action="" enctype="multipart/form-data"> <table> <tr> <td>Avatar die je wilt uploaden: </td> <td><input type="file" name="bestand"></td> </tr> <tr> <td><input type="hidden" name="invis_field" value="1" /></td> <td><input type="submit" name="submit" value="Avatar uploaden!" onSubmit="return true"></td> </tr> </table> </form> <?php error_reporting(E_ALL); if($_SERVER['REQUEST_METHOD'] == 'POST') { if(isset($_POST['invis_field'])) { if(isset($_FILES['bestand'])) { if($_FILES['bestand']['size'] > 20480) { echo 'Je bestand is te groot! Het mag maximaal <b>20 kb</b> groot zijn!'; } else // VANAF HIER SCRIPT AFGEKAPT ?>
<form method="post" action="" enctype="multipart/form-data"> <table> <tr> <td>Avatar die je wilt uploaden: </td> <td><input type="file" name="bestand"></td> </tr> <tr> <td><input type="hidden" name="invis_field" value="1" /></td> <td><input type="submit" name="submit" value="Avatar uploaden!" onSubmit="return true"></td> </tr> </table></form> <?phperror_reporting(E_ALL); if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['invis_field'])) { if(isset($_FILES['bestand'])) { if($_FILES['bestand']['size'] > 20480) { echo 'Je bestand is te groot! Het mag maximaal <b>20 kb</b> groot zijn!'; } else// VANAF HIER SCRIPT AFGEKAPT ?>
<html> <head> <title>bla</title> <script style="text/javascript"> function submitform() { if(event.keyCode == 13) { document.myform.submit(); } } </script> </head> <bodY> <form method="post" name="myform" action=""> <input type="text" name="mytxt" onKeyDown="submitform();"> </form> </body> </html>
<html><head><title>bla</title><script style="text/javascript">function submitform(){ if(event.keyCode == 13) { document.myform.submit(); }}</script></head><bodY><form method="post" name="myform" action=""><input type="text" name="mytxt" onKeyDown="submitform();"></form></body></html>
onSubmit="return true"