1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| <div id="apDiv5">
<div id="apDiv1">
<form action="ciblesupp.php" method="get" id="f1" name="myform">
<fieldset id="container">
<legend>Suppression</legend>
<span class="blanc">Choisir un utilisateur :</span>
<select name="username" id="username">
<option>-Choisissez-</option>
<?php
$reponse = $bdd->prepare('SELECT username FROM user');
$reponse->execute();
while ($donnees = $reponse->fetch())
{
echo'<option value="'.$donnees['username'].'">'.$donnees['username'].'</option>';
}
?>
</select>
<table width="500" border="2">
<tr>
<th colspan="2">Register
<?php
/* if user submits and any errors exists we display them for user. */
if(isset($_POST['Submit']) and count($errors)>0){
foreach($errors as $k=>$v){
echo '<br/>'.$v;
}
}?></th>
</tr>
<tr>
<td>Captcha</td>
<td>
<!-- image inserted from php_captcha.php -->
<input type="image" name="imageField" src="php_captcha.php" /></td>
</tr>
<tr>
<td> </td>
<td>
<!-- user input where the captcha value is set -->
<input name="captchacode" type="text" id="captchacode" /></td>
</tr>
</table>
<button onclick="javascript:if (confirm('Etes-vous sûre de vouloir supprimer cet utilisateur ?')) document.forms['myform'].submit(); else return false ;">Supprimer</button>
</td>
</fieldset>
</form> |
Partager