le 25/01/2009 à 11:55
hawksf117a
bonjour,
j'ai un peit souci sur le r
j'ai un peit souci sur le r
<?php
if(isset($_POST['Submit']))
{
// je vais les vérifications d'usage.... si c'est bon je fais mes traitements et je vais sur une autre page...
par contre si ce n'est pas je fais le else ci-dessous:
}
else
{
echo "prix j____________".$_POST['prixj']; // j'ai l'info jusqu'a cet endroit aprés plus rien.
?>
<form name="form1" method="post" action="">
<input class=text type=text name="prixj" size=7 maxlength=6 value="<? echo $prixj;?>">
<input class=button type='submit' name='Submit' value='Envoyer'>
<input class=button type='reset' name='Reset' value='Effacer'>
</form>
<? } ?>
<input class="text" type="text" name="prixj" size="7" maxlength="6" value="<?php if (isset($_POST['prixj'])) echo htmlentities($_POST['prixj']); ?>">
<?php
if(isset($_POST['Submit'])) // clic Send détecté
{
if(isset($_POST['radiobutton'])) {
$radiobutton=$_POST['radiobutton'];
switch($radiobutton)
{
case "CF" :
{
$badseCF=" checked";
$badseTO="";
break;
}
case "TO" :
{
$badseCF="";
$badseTO=" checked";
break;
}
default :
{
$radiobutton="";
break;
}
}
}
else
{
?>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" value="CF"<?php if (isset($_POST['basecf'])) echo htmlentities($_POST['basecf']); ?> >
<textarea name='descriptif' class=textarea cols=55 rows=5 maxlength=303 value='<? echo $descriptif; ?>'><? echo $descriptif;?></textarea>
<select name="type" size="1" value="<?php if (isset($_POST['type'])) echo htmlentities($_POST['type']); ?>" >
<option value=choo>Choisir le type
<option value=pizz>Pizza
<option value=sala>Salade
<option value=menu>Menu
<option value=sand>Sandwich
<option value=pani>Panini
<option value=texm>Tex Mex
<option value=croq>Croque </select>
<input class=button type='submit' name='Submit' value='Envoyer'>
<input class=button type='reset' name='Reset' value='Effacer'>
</form>
<? }>
<?php
if(isset($_POST['Submit'])) // clic Send détecté
{
if(isset($_POST['radiobutton'])) {
$radiobutton=$_POST['radiobutton'];
switch($radiobutton)
{
case "CF" :
{
$badseCF=" checked";
$badseTO="";
break;
}
case "TO" :
{
$badseCF="";
$badseTO=" checked";
break;
}
default :
{
$radiobutton="";
break;
}
}
}
else
{
?>
<form name="form1" method="post" action="">
<input type="radio" name="radiobutton" value="CF" <?php if (isset($_POST['basecf']) && $_POST['basecf'] == 'CF') echo 'checked="checked"'; ?> >
<textarea name='descriptif' class=textarea cols=55 rows=5 maxlength=303><? echo $descriptif;?></textarea>
<select name="type" size="1">
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'choo') echo 'selected="selected"'; ?> value="choo">Choisir le type
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'pizz') echo 'selected="selected"'; ?> value="pizz">Pizza
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'sala') echo 'selected="selected"'; ?> value="sala">Salade
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'menu') echo 'selected="selected"'; ?> value="menu">Menu
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'sand') echo 'selected="selected"'; ?> value="sand">Sandwich
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'pani') echo 'selected="selected"'; ?> value="pani">Panini
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'texm') echo 'selected="selected"'; ?> value="texm">Tex Mex
<option <?php if (isset($_POST['type']) && $_POST['type'] == 'croq') echo 'selected="selected"'; ?> value="croq">Croque </select>
<input class=button type='submit' name='Submit' value='Envoyer'>
<input class=button type='reset' name='Reset' value='Effacer'>
</form>
<? }>