A voir également:
- Php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Bouton php - Forum PHP
- Php alert ✓ - Forum PHP
- Retour a la ligne php - Forum Webmastering
1 réponse
Droopy_
Messages postés
248
Date d'inscription
dimanche 16 novembre 2008
Statut
Membre
Dernière intervention
17 janvier 2009
25
5 déc. 2008 à 23:50
5 déc. 2008 à 23:50
Moi, je fais comme ça, et ça marche au poil (J'ai schématisé, bien-sûr)
<?php $command=$_GET['command']; if ($command == "new") { // Code pour ajouter un étudiant // code avec header("location: ...") pour envoyer sur une liste, éventuellement. } else if ($command == "del") { // code pour supprimer l'étudiant // code avec header("location: ...") pour envoyer sur une liste, éventuellement. } // Code pour récupérer l'étudiant ?> <html> <body> <form name='form'> <input type='hidden' name='command' value=''> // Affichage du formulaire <input type='button' value='Ajouter un étudiant' onClick="document.form.command.value='new'; document.form.submit();"> <input type='button' value='Supprimer un étudiant' onClick="document.form.command.value='del'; document.form.submit();"> </form> </body> </html>
6 déc. 2008 à 00:31