1 réponse
login08
Messages postés
32
Date d'inscription
vendredi 24 avril 2009
Statut
Membre
Dernière intervention
5 juin 2009
3
24 avril 2009 à 15:07
24 avril 2009 à 15:07
nom du fichier : fichier.php
<?php if(isset($_POST['ajout_suppression']) && empty($_POST['ajout_suppression'])) { if($_POST['ajout_suppression']==1) { //Tu appel ton action ajout } else { //Tu appel ton action suppression } } else { echo "<form name='formulaire_ajout_suppresion' action='./fichier.php' metod='POST'>"; echo "<input type='radio' name='ajout_suppression' value='1' />Ajout"; echo " <input type='radio' name='ajout_suppression' value='2' />Suppression"; echo " <input type='submit' name='soumettre' value='Soumettre'>"; </form> } ?>
27 avril 2009 à 09:58