Comme dit beleg, c'est carrément jouable en faisant un javascript qui va bien. Du genre :
Code :
- <script>
- function mafonction()
- {
- // Traitement quelconque sur les variables ici
- document.loginForm.submit();
- }
- </script>
- <form name="loginForm" method="post" action="monscript.php">
- <input type="text" name="login"></input><br>
- <input type="password" name="pass"></input><br>
- <a href="mafonction();">Lien</a>
- </form>
|
Bien évidemment, si tu ne veux faire aucun traitement sur tes variables dans le javascript, tu peux cash faire <a href="document.loginForm.submit();">Lien</a> et ça tournera pareil.
---------------
Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient.