The_tiger85
New Member
Bonjour à tous,
J'ai créer un page "saisirloterreur" qui est pareil à "saisirlot" mais qui devrai me permettre de géré les erreurs.
Dans ma page "saisirlot" j'ai créer un IF, voir ci-après :
:fleche: if (is_string($_POST['txtNumMarche2'])
and is_string($_POST['txtMontant2'])
or is_string($_POST['txtMontant2'])
and is_string($_POST['txtMontantMini2'])
or is_string($_POST['txtMontantMini2'])
and is_string($_POST['txtMontantMaxi2'])
or is_string($_POST['txtMontantMaxi2'])
and is_string($_POST['txtMontantReel2'])
or is_string($_POST['txtMontantReel2']))
:fleche: {
:fleche: header("Location:http://xp05043/Marches/saisirlot.php");
:fleche: }
Mais le problème c'est que j'ai ceci comme message d'erreur :
:fleche: Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Marches\saisirlot.php:14) in C:\wamp\www\Marches\saisirlot.php on line 474
Si quelqu'un peut m'aider, sa m'aiderai car là, je bloque !!
J'ai créer un page "saisirloterreur" qui est pareil à "saisirlot" mais qui devrai me permettre de géré les erreurs.
Dans ma page "saisirlot" j'ai créer un IF, voir ci-après :
:fleche: if (is_string($_POST['txtNumMarche2'])
and is_string($_POST['txtMontant2'])
or is_string($_POST['txtMontant2'])
and is_string($_POST['txtMontantMini2'])
or is_string($_POST['txtMontantMini2'])
and is_string($_POST['txtMontantMaxi2'])
or is_string($_POST['txtMontantMaxi2'])
and is_string($_POST['txtMontantReel2'])
or is_string($_POST['txtMontantReel2']))
:fleche: {
:fleche: header("Location:http://xp05043/Marches/saisirlot.php");
:fleche: }
Mais le problème c'est que j'ai ceci comme message d'erreur :
:fleche: Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Marches\saisirlot.php:14) in C:\wamp\www\Marches\saisirlot.php on line 474
Si quelqu'un peut m'aider, sa m'aiderai car là, je bloque !!