Source de: form5.html
Retour
<html><head><title>Formulaire d'inscription</title><META http-equiv=pragma content=no-cache>
<link rel="stylesheet" href="../css/sga.css" type="text/css" />
<script LANGUAGE="Javascript" src="validation.js"></script>
</head>
<body>
<form action="form5.php" method="POST">
<h3 align="center">Formulaire d'inscription</H3>
<table border=1 align="CENTER" width="80%">
<tr>
<td colspan=2 align="CENTER"> Madame :
<input type="radio" value="Madame" name="civ" <?php if(isset($_POST['civ'])){if($_POST['civ']=='Madame') echo 'checked';} ?> >
Mademoiselle :
<input type="radio" value="Mademoiselle" name="civ" <?php if(isset($_POST['civ'])){if($_POST['civ']=='Mademoiselle') echo 'checked';} ?> >
Monsieur :
<input type="radio" value="Monsieur" name="civ" <?php if(isset($_POST['civ'])){if($_POST['civ']=='Monsieur') echo 'checked';} ?> >
</td>
</tr>
<tr>
<td width="32%">Nom :</td>
<td width="68%"><input type="text" name="nom" SIZE=40 value="<?php if(isset($_POST['nom'])) echo $_POST['nom']; ?>" ></td>
</tr>
<tr>
<td>Prénom :</td>
<td><input type="text" value="<?php if(isset($_POST['prenom'])) echo $_POST['prenom']; ?>" name="prenom" SIZE=40 /></td>
</tr>
<tr>
<td>Adresse</td>
<td><textarea rows="2" name="adresse" ><?php if(isset($_POST['adresse'])) echo $_POST['adresse']; ?></textarea></td>
</tr>
<tr>
<td>Code Postal</td>
<td><input type="text" value="<?php if(isset($_POST['cp'])) echo $_POST['cp']; ?>" size="10" maxlength="5" name="cp" />
Ville <input type="text" value="<?php if(isset($_POST['ville'])) echo $_POST['ville']; ?>" size="40" maxlength="40" name="ville" />
</td>
</tr>
<tr>
<tr>
<td>Téléphone : </td>
<td><input type="text" value="<?php if(isset($_POST['telephone'])) echo $_POST['telephone']; ?>" name="telephone" SIZE=20 maxlength="15" /></td>
</tr>
<td>Courriel : </td>
<td><input type="text" value="<?php if(isset($_POST['courriel'])) echo $_POST['courriel']; ?>" name="courriel" SIZE=40 /></td>
</tr>
<tr>
<tr>
<td colspan=2 align="center">Choix des cours:
</td>
<tr>
<td valign="top">Principaux :
<div align="right">
Mathématiques : <input type="checkbox" value="Mathématiques" name="cours[]" <?php if(isset($_POST['cours'])){foreach ($_POST['cours'] as $key => $value){if($value=='Mathématiques'){ echo 'checked' ; }}} ?> /><br>
Physique : <input type="checkbox" value="Physique" name="cours[]" <?php if(isset($_POST['cours'])){foreach ($_POST['cours'] as $key => $value){if($value=='Physique'){ echo 'checked' ; }}} ?> /><br>
Français :<input type="checkbox" value="Français" name="cours[]" <?php if(isset($_POST['cours'])){foreach ($_POST['cours'] as $key => $value){if($value=='Français'){ echo 'checked' ; }}} ?> />
</div></td>
<td valign="top"> Optionnels<br>
<select name="coursoption[]" MULTIPLE>
<option <?php if(isset($_POST['coursoption'])){foreach ($_POST['coursoption'] as $key => $value){if($value=='Anglais'){ echo 'SELECTED' ; }}} ?> >Anglais</option>
<option <?php if(isset($_POST['coursoption'])){foreach ($_POST['coursoption'] as $key => $value){if($value=='Espagnol'){ echo 'SELECTED' ; }}} ?> >Espagnol</option>
<option <?php if(isset($_POST['coursoption'])){foreach ($_POST['coursoption'] as $key => $value){if($value=='Art plastique'){ echo 'SELECTED' ; }}} ?> >Art plastique</option>
</select>
</td>
</tr>
<tr>
<td colspan=2 align="center">
<input type="button" value="Envoyer" name="Submit" onClick="valider();" />
<input name="reset" type="reset" onClick="window.location='form5.php'" value="Réinitialiser">
</td>
</tr>
</table>
</form>
<?php
/*
foreach ($_POST as $key => $value)
{
echo "$key : $value<br>\n";
}
*/
?>
</body>
</html>
Traité le : 28/08/2026 19:20:16