Bonjour, je me demandais si une action de formulaire pouvais être variable ???
Le code que j'ai réalisé :
<?php if ($_GET['choix']=='admin') {
$envoie="admin.php";
}
if ($_GET['choix']=='barthe') {
$envoie="contactbarthe.php";
}
if ($_GET['choix']=='service') {
$envoie="service.php";
} ?>
<table>
<form action="<?php '.$envoie.' ?>" method="post" enctype="application/x-www-form-urlencoded" name="formulaire">
-----------------------------------------------------------------------
Quand je trouve pas ça m'énerve !!!