Probleme de formulaire sous firefox
Résolu/Fermé
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
-
21 mai 2008 à 11:14
Utilisateur anonyme - 24 mai 2008 à 18:02
Utilisateur anonyme - 24 mai 2008 à 18:02
A voir également:
- Probleme de formulaire sous firefox
- Comment supprimer bing de firefox - Guide
- Video downloadhelper firefox - Télécharger - Outils pour navigateurs
- Formulaire de réclamation facebook - Guide
- Exporter favoris firefox - Guide
- Firefox download - Télécharger - Navigateurs
9 réponses
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
21 mai 2008 à 11:15
21 mai 2008 à 11:15
merci de cette réponse rapide!
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
21 mai 2008 à 11:43
21 mai 2008 à 11:43
non mais personne n'as eu ce problème sur le net c'est dingue ca je suis le dernier des abrutis alors....
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
21 mai 2008 à 13:41
21 mai 2008 à 13:41
up
Alain_42
Messages postés
5361
Date d'inscription
dimanche 3 février 2008
Statut
Membre
Dernière intervention
13 février 2017
894
21 mai 2008 à 13:51
21 mai 2008 à 13:51
Bonjour,
si tu ne nous donnes pas une copie du code, comment veux tu que l'on trouve.
si tu ne nous donnes pas une copie du code, comment veux tu que l'on trouve.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
21 mai 2008 à 13:54
21 mai 2008 à 13:54
Voila le code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<?php
$msg = " Votre inscription ".$_POST['nom']." ".$_POST['prenom']." nous est bien parvenue ";
echo "$msg ";
// Test si le fichier a bien été envoyé et s'il n'y a pas d'erreur
if (isset($_FILES['fichier']) AND $_FILES['fichier']['error'] == 0)
{
// Test si le fichier n'est pas trop gros
if ($_FILES['fichier']['size'] <= 5000000)
{
// Test si l'extension est autorisée
$infosfichier = pathinfo($_FILES['fichier']['name']);
$extension_upload = $infosfichier['extension'];
$extensions_autorisees = array('jpg', 'jpeg', 'gif', 'png');
if (in_array($extension_upload, $extensions_autorisees))
{
// On peut valider le fichier et le stocker définitivement
move_uploaded_file($_FILES['fichier']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/".$_FILES['fichier']['name']);
echo $_SERVER['DOCUMENT_ROOT']
//move_uploaded_file($_FILES['fichier']['tmp_name'], $_SERVER['DOCUMENT_ROOT'].$_FILES['fichier']['name']);
echo "L'envoi a bien été effectué !";
}
else
{
echo "cependant votre photo ne possède pas la bonne extension. Elle passera en jpg, jpeg, gif, png. ";
}
}
else
{
echo "cependant votre photo est tros grosse pas plus de 5 Mo. ";
}
}
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$naissance = $_POST['naissance'];
$lieu = $_POST['lieu'];
$dpt = $_POST['dpt'];
$adresse = $_POST['adresse'];
$tel = $_POST['telephone'];
$telecopie = $_POST['telecopie'];
$port = $_POST['portable'];
$mail = $_POST['mail'];
$c1 = $_POST['classe'];
$o1 = $_POST['option'];
$a1 = $_POST['annee'];
$c2 = $_POST['classe2'];
$o2 = $_POST['option2'];
$a2 = $_POST['annee2'];
$c3 = $_POST['classe3'];
$o3 = $_POST['option3'];
$a3 = $_POST['annee3'];
$c4 = $_POST['classe4'];
$o4 = $_POST['option4'];
$a4 = $_POST['annee4'];
$c5 = $_POST['classe5'];
$o5 = $_POST['option5'];
$a5 = $_POST['annee5'];
$c6 = $_POST['classe6'];
$o6 = $_POST['option6'];
$a6 = $_POST['annee6'];
$c7 = $_POST['classe7'];
$o7 = $_POST['option7'];
$a7 = $_POST['annee7'];
$c8 = $_POST['classe8'];
$o8 = $_POST['option8'];
$a8 = $_POST['annee8'];
$m1 = $_POST['mention'];
$a9 = $_POST['annee9'];
$m2 = $_POST['mention2'];
$a10 = $_POST['annee10'];
//écriture depuis fin du fichier
$fp = fopen("fichier.txt","a+");
fputs($fp, "\n"); // on va a la ligne
fputs($fp, "nom | prenom | naissance | lieu | dpt | adresse | telephone | telecopie | portable | mail | classe | option | annee | classe2 | option2 | annee2 | classe3 | option3 | annee3 | classe4 | option4 | annee4 | classe5 | option5 | annee5 | classe6 | option6 | annee6 | classe7 | option7 | annee7 | classe8 | option8 | annee8 | mention | annee9 | mention2 | annee10 \n"); // on écrit dans le fichier
fputs($fp, "$nom | $prenom | $naissance | $lieu | $dpt | $adresse | $tel | $telecopie | $port | $mail | $c1 | $o1 | $a1 | $c2 | $o2 | $a2 | $c3 | $o3 | $a3 | $c4 | $o4 | $a4 | $c5 | $o5 | $a5 | $c6 | $o6 | $a6 | $c7 | $o7 | $a7 | $c8 | $o8 | $a8 | $m1 | $a9 | $m2 | $a10 \n");
fclose($fp);
//$_POST['nom'] $_POST['prenom'] $_POST['naissance'] $_POST['lieu'] $_POST['dpt'] $_POST['adresse'] $_POST['telephone']
//$_POST['telecopie'] $_POST['portable'] $_POST['mail'] $_POST['classe'] $_POST['option'] $_POST['annee'] $_POST['classe2']
//$_POST['option2'] $_POST['annee2'] $_POST['classe3'] $_POST['option3'] $_POST['annee3'] $_POST['classe4'] $_POST['option4'] $_POST['annee4']
//$_POST['classe5'] $_POST['option5'] $_POST['annee5'] $_POST['classe6'] $_POST['option6'] $_POST['annee6'] $_POST['classe7']
//$_POST['option7'] $_POST['annee7'] $_POST['classe8'] $_POST['option8'] $_POST['annee8'] $_POST['mention'] $_POST['annee9']
//$_POST['mention2'] $_POST['annee10']
?>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<?php
$msg = " Votre inscription ".$_POST['nom']." ".$_POST['prenom']." nous est bien parvenue ";
echo "$msg ";
// Test si le fichier a bien été envoyé et s'il n'y a pas d'erreur
if (isset($_FILES['fichier']) AND $_FILES['fichier']['error'] == 0)
{
// Test si le fichier n'est pas trop gros
if ($_FILES['fichier']['size'] <= 5000000)
{
// Test si l'extension est autorisée
$infosfichier = pathinfo($_FILES['fichier']['name']);
$extension_upload = $infosfichier['extension'];
$extensions_autorisees = array('jpg', 'jpeg', 'gif', 'png');
if (in_array($extension_upload, $extensions_autorisees))
{
// On peut valider le fichier et le stocker définitivement
move_uploaded_file($_FILES['fichier']['tmp_name'], $_SERVER['DOCUMENT_ROOT']."/".$_FILES['fichier']['name']);
echo $_SERVER['DOCUMENT_ROOT']
//move_uploaded_file($_FILES['fichier']['tmp_name'], $_SERVER['DOCUMENT_ROOT'].$_FILES['fichier']['name']);
echo "L'envoi a bien été effectué !";
}
else
{
echo "cependant votre photo ne possède pas la bonne extension. Elle passera en jpg, jpeg, gif, png. ";
}
}
else
{
echo "cependant votre photo est tros grosse pas plus de 5 Mo. ";
}
}
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$naissance = $_POST['naissance'];
$lieu = $_POST['lieu'];
$dpt = $_POST['dpt'];
$adresse = $_POST['adresse'];
$tel = $_POST['telephone'];
$telecopie = $_POST['telecopie'];
$port = $_POST['portable'];
$mail = $_POST['mail'];
$c1 = $_POST['classe'];
$o1 = $_POST['option'];
$a1 = $_POST['annee'];
$c2 = $_POST['classe2'];
$o2 = $_POST['option2'];
$a2 = $_POST['annee2'];
$c3 = $_POST['classe3'];
$o3 = $_POST['option3'];
$a3 = $_POST['annee3'];
$c4 = $_POST['classe4'];
$o4 = $_POST['option4'];
$a4 = $_POST['annee4'];
$c5 = $_POST['classe5'];
$o5 = $_POST['option5'];
$a5 = $_POST['annee5'];
$c6 = $_POST['classe6'];
$o6 = $_POST['option6'];
$a6 = $_POST['annee6'];
$c7 = $_POST['classe7'];
$o7 = $_POST['option7'];
$a7 = $_POST['annee7'];
$c8 = $_POST['classe8'];
$o8 = $_POST['option8'];
$a8 = $_POST['annee8'];
$m1 = $_POST['mention'];
$a9 = $_POST['annee9'];
$m2 = $_POST['mention2'];
$a10 = $_POST['annee10'];
//écriture depuis fin du fichier
$fp = fopen("fichier.txt","a+");
fputs($fp, "\n"); // on va a la ligne
fputs($fp, "nom | prenom | naissance | lieu | dpt | adresse | telephone | telecopie | portable | mail | classe | option | annee | classe2 | option2 | annee2 | classe3 | option3 | annee3 | classe4 | option4 | annee4 | classe5 | option5 | annee5 | classe6 | option6 | annee6 | classe7 | option7 | annee7 | classe8 | option8 | annee8 | mention | annee9 | mention2 | annee10 \n"); // on écrit dans le fichier
fputs($fp, "$nom | $prenom | $naissance | $lieu | $dpt | $adresse | $tel | $telecopie | $port | $mail | $c1 | $o1 | $a1 | $c2 | $o2 | $a2 | $c3 | $o3 | $a3 | $c4 | $o4 | $a4 | $c5 | $o5 | $a5 | $c6 | $o6 | $a6 | $c7 | $o7 | $a7 | $c8 | $o8 | $a8 | $m1 | $a9 | $m2 | $a10 \n");
fclose($fp);
//$_POST['nom'] $_POST['prenom'] $_POST['naissance'] $_POST['lieu'] $_POST['dpt'] $_POST['adresse'] $_POST['telephone']
//$_POST['telecopie'] $_POST['portable'] $_POST['mail'] $_POST['classe'] $_POST['option'] $_POST['annee'] $_POST['classe2']
//$_POST['option2'] $_POST['annee2'] $_POST['classe3'] $_POST['option3'] $_POST['annee3'] $_POST['classe4'] $_POST['option4'] $_POST['annee4']
//$_POST['classe5'] $_POST['option5'] $_POST['annee5'] $_POST['classe6'] $_POST['option6'] $_POST['annee6'] $_POST['classe7']
//$_POST['option7'] $_POST['annee7'] $_POST['classe8'] $_POST['option8'] $_POST['annee8'] $_POST['mention'] $_POST['annee9']
//$_POST['mention2'] $_POST['annee10']
?>
</body>
</html>
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
21 mai 2008 à 16:43
21 mai 2008 à 16:43
up
Utilisateur anonyme
21 mai 2008 à 17:56
21 mai 2008 à 17:56
hein?
Salut, va voir ici, j'ai eu le même pbm que toi et Php me l'a réglé. Salut
http://www.commentcamarche.net/forum/affich 6486806 javascript de questionnaire
http://www.commentcamarche.net/forum/affich 6486806 javascript de questionnaire
drogba7213
Messages postés
1521
Date d'inscription
mardi 14 août 2007
Statut
Membre
Dernière intervention
3 avril 2010
21
22 mai 2008 à 10:21
22 mai 2008 à 10:21
C'est bon mec j'ai trouvé en fait dans mon boutton validé j'avais mis le lien.php alors que dans mon method POST il y avait deja lien.php donc impeccable
merci a toi.
merci a toi.