Espace dans nom de champ de texte
Fermé
geobiznet
Messages postés
4
Date d'inscription
mercredi 12 mai 2010
Statut
Membre
Dernière intervention
18 mai 2010
-
17 mai 2010 à 18:21
geobiznet Messages postés 4 Date d'inscription mercredi 12 mai 2010 Statut Membre Dernière intervention 18 mai 2010 - 18 mai 2010 à 12:01
geobiznet Messages postés 4 Date d'inscription mercredi 12 mai 2010 Statut Membre Dernière intervention 18 mai 2010 - 18 mai 2010 à 12:01
A voir également:
- Espace dans nom de champ de texte
- Espace insécable word - Guide
- Trouver un numéro de portable avec un nom ✓ - Forum Mobile
- Nom de l'adresse ✓ - Forum Réseaux sociaux
- Comment liberer de l'espace sur gmail - Guide
- &Quot;Nom de l'adresse" lors d'une inscription sur une site - Forum Consommation & Internet
1 réponse
allyson77
Messages postés
20
Date d'inscription
jeudi 13 mai 2010
Statut
Membre
Dernière intervention
17 mai 2010
2
17 mai 2010 à 20:20
17 mai 2010 à 20:20
Je ne suis pas certain que ca fonctionne avec des espaces.
Mais n'oublie pas de mettre l'attribut value, ca viens peut être de ca.
Si ton attribut name est généré automatiquement, tu peux toujours faire un str_replace en php pour supprimer les espaces
Mais n'oublie pas de mettre l'attribut value, ca viens peut être de ca.
Si ton attribut name est généré automatiquement, tu peux toujours faire un str_replace en php pour supprimer les espaces
18 mai 2010 à 12:01
voici dc le message d'erreur:
Notice: Undefined index: JEMINTERESSEALAPTI in C:\wamp\www\geobiz7 (sur geobiztest)\sendemail.php on line 54
Notice: Undefined index: ENVOYEZMOILADOCUMENTATIONPTI in C:\wamp\www\geobiz7 (sur geobiztest)\sendemail.php on line 55
Notice: Undefined index: CONTACTEZMOIPARTELEPHONESVP in C:\wamp\www\geobiz7 (sur geobiztest)\sendemail.php on line 56
Notice: Undefined index: JESUISDEJACLIENTCHEZVOUS in C:\wamp\www\geobiz7 (sur geobiztest)\sendemail.php on line 57
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\geobiz7 (sur geobiztest)\sendemail.php on line 114
AU CAS OU VOUS VOULEZ VOICI LE CODE DE LA PAGE sendemail.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>
<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
<!-- Reminder: Change 'YourEmail' to Your real email -->
<?php
//$ip = $_POST['ip'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$entreprise = $_POST['ENTREPRISE'];
$titre = $_POST['titre'];
$adresse = $_POST['adresse'];
$nopostal = $_POST['nopostal'];
$ville = $_POST['ville'];
$pays = $_POST['pays'];
$email = $_POST['email'];
$telephone = $_POST['telephone'];
$cellulaire = $_POST['CELLULAIRE'];
/* if(isset($_POST['Monsieur'])){
$salutation = Monsieur}
else {$salutation =Madame}
if(isset($_POST['JEMINTERESSEAUTRACKING'])){
$jeminteresseautracking = 'Je m''interesse au tracking'}
else {$jeminteresseautracking =''}
if(isset($_POST['JEMINTERESSEALAPTI'])){
$jeminteressealapti = 'Je m''interesse a la PTI'}
else {$jeminteressealapti =''}
if(isset($_POST['ENVOYEZMOILADOCUMENTATIONTRACKING'])){
$envoyezmoiladocumentationtracking = 'Envoyez-moi la documentation tracking'}
else {$envoyezmoiladocumentationtracking =''}
if(isset($_POST['ENVOYEZMOILADOCUMENTATIONPTI'])){
$envoyezmoiladocumentationpti = 'ENVOYEZMOILADOCUMENTATIONPTI'}
else {$envoyezmoiladocumentationpti =''}
if(isset($_POST['CONTACTEZMOIPARTELEPHONESVP'])){
$contactezmoipartelephone = 'Contactez moi par téléphone SVP'}
else {$contactezmoipartelephone =''}
if(isset($_POST['JESUISDEJACLIENTCHEZVOUS'])){
$jesuisdejaclient = 'Je suis deja client(e) chez vous'}
else {$jesuisdejaclient =''} */
$jeminteresseautracking = $_POST['JEMINTERESSEAUTRACKING'];
$envoyezmoiladocumentationtracking = $_POST['ENVOYEZMOILADOCUMENTATIONTRACKING'];
$jeminteressealapti = $_POST['JEMINTERESSEALAPTI'];
$envoyezmoiladocumentationpti = $_POST['ENVOYEZMOILADOCUMENTATIONPTI'];
$contactezmoipartelephone = $_POST['CONTACTEZMOIPARTELEPHONESVP'];
$jesuisdejaclient = $_POST['JESUISDEJACLIENTCHEZVOUS'];
$questionremarques = $_POST['QUESTIONSREMARQUES'];
// if (eregi('http:', $questionremarques)) {
// die ("Do NOT try that! ! ");
// }
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");
}
// if(empty($visitor) || empty($visitormail) || empty($questionremarques )) {
// echo "<h2>Use Back - fill in all fields</h2>\n";
// die ("Use back! ! ");
//}
$todayis = date("l, F j, Y, g:i a") ;
//$attn = $attn ;
$subject = "fORMULAIRE DE CONTACT";
$notes = stripcslashes($questionremarques);
$message = " $todayis [EST] \n
Nom = $nom \n
Prenom = $prenom \n
Entreprise = $entreprise \n
Titre = $titre \n
Adresse = $adresse \n
No postal = $nopostal \n
Ville = $ville \n
Pays = $pays \n
Email = $email \n
Téléphone = $telephone \n
Cellulaire = $cellulaire \n
Je m'interesse au tracking = $jeminteresseautracking \n
Envoyez moi la documentation tracking = $envoyezmoiladocumentationtracking \n
Je m'interesse a la PTI = $jeminteressealapti \n
Envoyez moi la documentation PTI = $envoyezmoiladocumentationpti \n
Contactez moi par téléphone S.V.P.= $contactezmoipartelephone \n
Je suis déja client(e) chez vous = $jesuisdejaclient \n
QUESTIONS / REMARQUES: = $questionremarques \n
";
$from = "From: $email\r\n";
mail("yaobita@yahoo.fr", $subject, $message, $from);
?>
<p align="center">
Date: <?php echo $todayis ?>
<br />
Thank You : <?php echo $nom ?> ( <?php echo $email ?> )
<br />
<br />
Message:<br />
<?php $notesout = str_replace("\r", "<br/>", $questionremarques);
echo $notesout; ?>
<br />
<br /><br />
<a href="MerciFR.html"> Go Back </a>
</p>
</body>
</html>