zOy

  • Signature
    Blue Star Investment
  • Site web
  • Nombre de sujets
    31
  • Nombre de messages
    74
  • Nombre de commentaires
    Aucun
  • Nombre de news
    Aucune
  • Niveau en PHP
    Débutant

Ses derniers messages sur les forums

zOy
le 18/04/2008 à 17:01
Erreur SQL
Tout est OK, je ne vois vraiment pas d'où vien l'erreur !

voici la page des formulaires :
<form action="new_reservation_traitement3.php" method="post">
<table width="769" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30">&nbsp;</td>
</tr>
<tr>
<td height="20"><img src="images/reservation/titre2.gif" width="734" height="31"><br></td>
</tr>
<tr>
<td height="50" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="681">
<tbody>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style15 style19 style18"><strong>Civilit&eacute; : </strong></span></td>
<td height="30" width="144"><span class="style19 style19 style15">
<select name="civilite">
<option selected> </option>
<option>Madame</option>
<option>Mademoiselle</option>
<option>Monsieur</option>
</select>
</span></td>
<td height="30" width="16"><span class="style15"></span></td>
<td height="30" width="192"><span class="style15"></span></td>
<td height="30" width="161"><span class="style15"></span></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style15 style19 style18"><strong>Nom : </strong></span></td>
<td height="30" width="144"><input name="nom" class="style19 style15" value=""></td>
<td height="30"><span class="style15"></span></td>
<td height="30" width="192"><span class="style15 style19"><strong>Pr&eacute;nom : </strong></span></td>
<td height="30" width="161"><input name="prenom" class="style19 style15" value=""></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style18 style19 style15">Date de naissance :</span></td>
<td height="30" width="144"><input name="naissance" class="style19 style15" value=""></td>
<td height="30"><span class="style15"></span></td>
<td height="30" width="192"><span class="style15 style19"><strong>Mail : </strong></span></td>
<td height="30" width="161"><input name="mail" class="style19 style15" value=""></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="40" width="139" valign="top"><span class="style15 style19 style18"><strong>Adresse : </strong></span></td>
<td colspan="4" height="40" valign="middle"><span class="style19 style19 style15">
<textarea name="adresse" cols="30"></textarea>
<img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="20"> </span></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style15 style19 style18"><strong>Code postal : </strong></span></td>
<td height="30" width="144"><input name="code_postal" class="style19 style15" value=""></td>
<td height="30"><span class="style15"></span></td>
<td height="30" width="192"><span class="style15 style19"><strong>Ville : </strong></span></td>
<td height="30" width="161"><input name="ville" class="style19 style15" value=""></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style15 style19 style18"><strong>Pays : </strong></span></td>
<td height="30" width="144"><input name="pays" class="style19 style15" value=""></td>
<td height="30"><span class="style15"></span></td>
<td height="30" width="192"><span class="style19 style19 style15">GSM : </span></td>
<td height="30" width="161"><input name="gsm" class="style19 style15" value=""></td>
</tr>
<tr>
<td width="29">&nbsp;</td>
<td height="30" width="139"><span class="style18 style19 style15">T&eacute;l&eacute;phone : </span></td>
<td height="30" width="144"><input name="tel" class="style19 style15" value=""></td>
<td height="30"><span class="style15"></span></td>
<td height="30" width="192"><span class="style19 style19 style15">Fax : </span></td>
<td height="30" width="161"><input name="fax" class="style19 style15" value=""></td>
</tr>
<tr>
<td>&nbsp;</td>
<td height="30">&nbsp;</td>
<td height="30">&nbsp;</td>
<td height="30">&nbsp;</td>
<td height="30">&nbsp;</td>
<td height="30">&nbsp;</td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td height="50" valign="top"><img src="images/reservation/hebergement.gif" width="734" height="31"></td>
</tr>
<tr>
<td height="50" valign="top"><table cellspacing="0" cellpadding="0">

<tr>
<td width="27" height="30">&nbsp;</td>
<td width="149" height="30"><span class="style26">R&eacute;servation au nom de </span></td>
<td colspan="2" height="30"><input name="nom_reservation" value=""></td>
<td width="167" height="30"><span class="style19">
<input name="hotel" type="hidden" id="hotel" value="Hotel Hamamet">
</span></td>
</tr>
<tr>
<td height="30">&nbsp;</td>
<td height="30"><span class="style26">Nombre de personne(s) </span></td>
<td width="158" height="30"><input name="nbr_personne" type="text" value=""></td>
<td colspan="2" height="30"><span class="style19"></span></td>
</tr>
<tr>
<td height="30">&nbsp;</td>
<td height="30"><span class="style26">Nombre de chambre(s)</span></td>
<td height="30"><span class="style19"></span></td>
<td width="166" height="30"><span class="style19"></span></td>
<td height="30"><span class="style19"></span></td>
</tr>
<tr>
<td height="30">&nbsp;</td>
<td height="30"><span class="style18">Single(s)</span></td>
<td height="30"><input name="single" type="text" value="" size="16" maxlength="12"></td>
<td height="30"><span class="style18">Double(s)
<input name="double" size="16" value="" type="text">
</span></td>
<td height="30"><span class="style18"> Triple(s)
<input name="triple" size="15" value="" type="text">
</span></td>
</tr>
<tr>
<td height="30">&nbsp;</td>
<td height="30"><span class="style18"><strong>Votre s&eacute;jour du </strong></span></td>
<td height="30"><span class="style18">
<input name="debut_sejour" size="16" value="" type="text">
<!-- // create calendar object(s) just after form tag closed // specify form element as the only parameter (document.forms['formname'].elements['inputname']); // note: you can have as many calendar objects as you need for your application var cal2 = new calendar1(document.forms['form1'].elements['debut_sejour']); cal2.year_scroll = false; cal2.time_comp = false; //-->
</span></td>
<td height="30"><span class="style18"><strong>au</strong> <img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" height="1" width="1">
<input name="fin_sejour" size="16" value="" type="text">
<!-- // create calendar object(s) just after form tag closed // specify form element as the only parameter (document.forms['formname'].elements['inputname']); // note: you can have as many calendar objects as you need for your application var cal3 = new calendar1(document.forms['form1'].elements['fin_sejour']); cal3.year_scroll = false; cal3.time_comp = false; //-->
</span></td>
<td height="30"><span class="style19"></span></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="50" valign="top"><img src="images/reservation/res_golf.gif" width="734" height="31"></td>
</tr>
<tr>
<td height="50" valign="top"><table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="732" height="58"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="186" bgcolor="#348F21"><img src="http://www.accueilsoins-tunisie.com/images/tarifs/golf_yasmine_2.jpg" height="58" width="246"></td>
<td bgcolor="#348F21" width="14">&nbsp;</td>
<td bgcolor="#348F21" width="498"><span class="style32">GOLF D'HAMMAMET </span></td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="732">
<tbody>
<tr>
<td height="10" valign="top"></td>
<td rowspan="2" valign="top" width="12"><img src="http://www.accueilsoins-tunisie.com/images/hotel/barre_gris.gif" height="120" width="1"></td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top" width="246"><table border="0" cellpadding="0" cellspacing="0" width="246">
<tbody>
<tr>
<td width="85"><span class="style15 style19"><strong>Green fee: </strong></span></td>
<td height="35" width="161"><span class="style15 style19">
<select name="green_fee">
<option selected="selected"> Sans Green Fee</option>
<option> 1 / 2 Green Fee</option>
<option>1 Green Fee</option>
<option>2 Green Fee</option>
<option>4 Green Fee</option>
<option>5 Green Fee</option>
<option>Offre sp&eacute;ciale 5 GS</option>
</select>
</span></td>
</tr>
<tr>
<td height="25"><span class="style15 style19"><strong>Le&ccedil;ons :</strong></span></td>
<td height="25"><span class="style15 style19">
<select name="lesson">
<option>Pas de le&ccedil;on</option>
<option>le&ccedil;on indiv</option>
<option>le&ccedil;on en groupe</option>
</select>
</span></td>
</tr>
</tbody>
</table></td>
<td valign="top" width="474"><table border="0" cellpadding="0" cellspacing="0" width="440"><tbody><tr><td height="25"><table border="0" cellpadding="0" cellspacing="0" width="440">
<tbody>
<tr>
<td height="35" class="style31">Equipement :</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td height="35">&nbsp;</td>
<td height="35">&nbsp;</td>
<td height="35">&nbsp;</td>
</tr>
<tr>
<td height="25" width="116"><span class="style30">Buggy 18 trous </span></td>
<td height="25" width="34"><input name="buggy_18" type="checkbox" value="Oui"></td>
<td height="25" width="107"><span class="style30">Buggy 9 trous</span></td>
<td height="25" width="33"><input name="buggy_9" type="checkbox" value="Oui"></td>
<td height="25" width="128"><span class="style30">Full set of clubs </span></td>
<td height="25" width="22"><input name="full" value="Oui" type="checkbox"></td>
</tr>
<tr>
<td height="25"><span class="style30">1/2 set of clubs</span></td>
<td height="25"><input name="demi_set" type="checkbox" value="Oui"></td>
<td height="25"><span class="style30">Trolley 18 trous </span></td>
<td height="25"><input name="trolley_18" type="checkbox" value="Oui"></td>
<td height="25"><span class="style30">15 driving-range balls</span></td>
<td height="25"><input name="driving_range_15" value="Oui" type="checkbox"></td>
</tr>
<tr>
<td height="25"><span class="style30">practice fee </span></td>
<td height="25"><input name="practice_fee" type="checkbox" value="Oui"></td>
<td height="25"><span class="style30">caddy</span></td>
<td height="25"><input name="caddy" type="checkbox" id="caddy" value="Oui"></td>
<td height="25">&nbsp;</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="50" valign="top"><img src="images/reservation/res_thalasso.gif" width="734" height="31"></td>
</tr>
<tr>
<td height="50" valign="top"><table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="732" height="58"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="186" bgcolor="#0095D5"><img src="images/tarifs/thalasso_hammamet_2.jpg" height="58" width="246"></td>
<td bgcolor="#0095D5" width="14">&nbsp;</td>
<td bgcolor="#0095D5" width="498"><span class="style32">CURES DE BIEN-&Ecirc;TRE &Agrave; HAMMAMET</span></td>
</tr>
</tbody>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="38%" bgcolor="#0095D5"><span class="texte_petit style6">NOM DE CURE</span></td>
<td width="21%" bgcolor="#0095D5"><div align="center" class="texte_petit style5 style10">nombre de cure(s) 2 jours</div></td>
<td width="20%" bgcolor="#0095D5"><div align="center" class="texte_petit style5 style10">nombre de cure(s) 4 jours</div></td>
<td width="21%" bgcolor="#0095D5"><div align="center" class="texte_petit style5 style10">nombre de cure(s) 5 jours</div></td>
</tr>
<tr>
<td><span class="texte_petit style5"><strong>CURES CLASSIQUES</strong><br>
<img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="10">Orientale, Bien-&ecirc;tre, Volupta, Remise en forme</span></td>
<td><div align="center"><span class="style5"></span>
<input name="cure_classique2j" type="text" id="cure_classique2j" size="5" maxlength="3">
</div></td>
<td><div align="center"><span class="style5"></span>
<input name="cure_classique4j" type="text" id="cure_classique4j" size="5" maxlength="3">
</div></td>
<td><div align="center"><span class="style5"></span>
<input name="textfield4" type="text" id="textfield4" size="5" maxlength="3" style="background-color:#FF0000" disabled>
</div></td>
</tr>
<tr>
<td><span class="texte_petit style5"><strong>CURES SPECIFIQUES</strong><br>
<img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="10">Fitonic, Minceur, Anti-stress, Jambes l&eacute;g&egrave;res</span></td>
<td><div align="center"><span class="style5"></span>
<input name="textfield6" type="text" id="textfield6" size="5" maxlength="3" style="background-color:#FF0000" disabled>
</div></td>
<td><div align="center"><span class="style5"></span>
<input name="textfield5" type="text" id="textfield5" size="5" maxlength="3" style="background-color:#FF0000" disabled>
</div></td>
<td><div align="center"><span class="style5"></span>
<input name="cure_specifique5j" type="text" id="cure_specifique5j" size="5" maxlength="3">
</div></td>
</tr>
<tr>
<td bgcolor="#0095D5"><span class="texte_petit style7"><span class="style8">SOINS BIEN-&Ecirc;TRE</span></span></td>
<td bgcolor="#0095D5">&nbsp;</td>
<td bgcolor="#0095D5">&nbsp;</td>
<td bgcolor="#0095D5">&nbsp;</td>
</tr>
<tr>
<td><span class="texte_petit style5"><img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="10"><strong>SOINS D&rsquo;HYDROTHERAPIE</strong></span></td>
<td><div align="center"><span class="style5"></span>
<select name="soins_hydro" id="soins_hydro" style="width:150px">
<option value="Aucun" selected>Aucun</option>
<option value="Forfait FORME (35&euro;)">Forfait FORME (35&euro;)</option>
<option value="Forfait RELAX (40&euro;)">Forfait RELAX (40&euro;)</option>
</select>
</div></td>
<td><div align="center"><span class="style5"></span></div></td>
<td><div align="center"><span class="style5"></span></div></td>
</tr>
<tr>
<td><span class="texte_petit style5"><img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="10"><strong>MASSAGES</strong></span></td>
<td><div align="center"><span class="style5"></span>
<select name="soins_massages" id="soins_massages" style="width:150px">
<option value="Aucun" selected>Aucun</option>
<option value="Massage complet (30m - 18&euro;)">Massage complet (30m - 18&euro;)</option>
<option value="Massage complet (50m - 28&euro;)">Massage complet (50m - 28&euro;)</option>
<option value="Massage chinois du dos (30m - 25&euro;)">Massage chinois du dos (30m - 25&euro;)</option>
</select>
</div></td>
<td><div align="center"><span class="style5"></span></div></td>
<td><div align="center"><span class="style5"></span></div></td>
</tr>
<tr>
<td><span class="texte_petit style5"><img src="http://www.accueilsoins-tunisie.com/images/spacer.gif" alt="" height="1" width="10"><strong>RELAXATION COR&Eacute;ENE</strong></span></td>
<td><div align="center"><span class="style5"></span>
<select name="soins_relaxation_coreene" id="soins_relaxation_coreene" style="width:150px">
<option value="Aucun" selected>Aucun</option>
<option value="Relaxation cor&eacute;ene (60m - 45&euro;)">Relaxation cor&eacute;ene (60m - 45&euro;)</option>
</select>
</div></td>
<td><div align="center"><span class="style5"></span></div></td>
<td><div align="center"><span class="style5"></span></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" valign="top"><p>&nbsp;</p>
<p><img src="images/reservation/res_chirurgie.gif" width="734" height="31"></p></td>
</tr>
<tr>
<td height="50" valign="top"><div align="center">
<p>
<input type="radio" name="res_chirurgie" id="radio" value="Oui">
<span class="texte_petit style15">J'ai d&eacute;ja pris contact avec le chirurgien en remplissant le formulaire dans la page chirugie esth&eacute;tique et j'ai re&ccedil;u sa r&eacute;ponse et son diagnostic op&eacute;ratoire</span></p>
<p class="style11 style5"> Vous ne pourrez acc&eacute;der &agrave; la r&eacute;servation de votre s&eacute;jour "chirurgie esth&eacute;tique" si cette &eacute;tape n'a pas &eacute;t&eacute; franchie. </p>
</div></td>
</tr>
<tr>
<td height="50" valign="top"><p>&nbsp;</p>
<p align="center">
<input type="submit" name="button" id="button" value="Terminer ma reservation" style="width:300px; background-color:#00CCFF; color:#FFFFFF; cursor:pointer">
<br>
<br>
</p></td>
</tr>
</table>
</form>
Blue Star Investment
zOy
le 18/04/2008 à 15:59
Erreur SQL
Bonjour à tous, j'ai une erreur SQL et je ne vois pas du tout d'où cela peut provenir.

<?
include 'config.php';
// lancement de la requete
$sql = 'INSERT INTO reservation_work1 SET
civilite="'.$_POST['civilite'].'",
nom="'.$_POST['nom'].'",
prenom="'.$_POST['prenom'].'",
naissance="'.$_POST['naissance'].'",
mail="'.$_POST['mail'].'",
adresse="'.$_POST['adresse'].'",
code_postal="'.$_POST['code_postal'].'",
ville="'.$_POST['ville'].'",
pays="'.$_POST['pays'].'",
gsm="'.$_POST['gsm'].'",
tel="'.$_POST['tel'].'",
fax="'.$_POST['fax'].'",
nom_reservation="'.$_POST['nom_reservation'].'",
hotel="'.$_POST['hotel'].'",
nbr_personne="'.$_POST['nbr_personne'].'",
single="'.$_POST['single'].'",
double="'.$_POST['double'].'",
triple="'.$_POST['triple'].'",
debut_sejour="'.$_POST['debut_sejour'].'",
fin_sejour="'.$_POST['fin_sejour'].'",
green_fee="'.$_POST['green_fee'].'",
lesson="'.$_POST['lesson'].'",
buggy_18="'.$_POST['buggy_18'].'",
buggy_9"'.$_POST['buggy_9'].'",
full="'.$_POST['full'].'",
demi_set="'.$_POST['demi_set'].'",
trolley_18="'.$_POST['trolley_18'].'",
driving_range_15="'.$_POST['driving_range_15'].'",
practice_fee="'.$_POST['practice_fee'].'",
caddy="'.$_POST['caddy'].'",
cure_classique2j="'.$_POST['cure_classique2j'].'",
cure_classique4j="'.$_POST['cure_classique4j'].'",
cure_specifique5j="'.$_POST['cure_specifique5j'].'",
soins_hydro="'.$_POST['soins_hydro'].'",
soins_massages="'.$_POST['soins_massages'].'",
soins_relaxation_coreene="'.$_POST['soins_relaxation_coreene'].'",
res_chirurgie="'.$_POST['res_chirurgie'].'"';

// on insere le tuple (mysql_query) et au cas où, on écrira un petit message d'erreur si la requête ne se passe pas bien (or die)
mysql_query ($sql) or die ('Erreur SQL !'.$sql.'<br />'.mysql_error());

// on ferme la connexion à la base
mysql_close();
header('Location: ok_reservation.php');
?>


Voiçi le message d'erreur :
Erreur SQL !INSERT INTO reservation_work1 SET civilite="Madame", nom="BLABLOU", prenom="Fatima", naissance="12/11/1990", mail="contact@accueilsoins-tunisie.com", adresse="fdsf", code_postal="92000", ville="La Rochelle", pays="France", gsm="0614068605", tel="0147246268", fax="0546859634", nom_reservation="DUARTE Mike", hotel="Hotel Hamamet", nbr_personne="5", single="5", double="", triple="", debut_sejour="18-04-2008", fin_sejour="03-05-2008", green_fee="Sans Green Fee", lesson="Pas de le�on", buggy_18="", buggy_9"", full="", demi_set="", trolley_18="", driving_range_15="", practice_fee="Oui", caddy="", cure_classique2j="", cure_classique4j="", cure_specifique5j="", soins_hydro="Forfait FORME (35�)", soins_massages="Massage complet (50m - 28�)", soins_relaxation_coreene="Relaxation cor�ene (60m - 45�)", res_chirurgie="Oui"
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double="", triple="", debut_sejour="18-04-2008", fin_sejour="03-05-2008", ' at line 18
Blue Star Investment
zOy
le 02/04/2008 à 09:16
remplacer un fichier
donc vaudrais mieux que j'intègre un système FTP à mon site en gros ?
Blue Star Investment
zOy
le 01/04/2008 à 15:21
remplacer un fichier
Bonjour à tous, voilà mon idée.
Pour le site d'un client. Je voudrais faire un gestionnaire d'image pour qu'il puisse changer les images de son templates à sa guise.

Enfete je voudrais faire une popup avec un formulaire qui remplacerais une image definie.

Par exemple on clique sur "Remplacer l'image 1" (la popup avec le formulaire approprié s'ouvre).

On indique le chemin du fichier, OK et l'image 1 est remplacée par l'image désirée.

Mais je ne sais vraiment pas comment procéder pour çà.

Quelqu'un aurrais-t-il une idée à me proposer ?

Merci d'avance ;)
Blue Star Investment
zOy
le 25/03/2008 à 11:06
Afficher donnée au format HTML
J'ai trouvé

Voici ce que je devais modifier

<? echo html_entity_decode($affichage); ?>
Blue Star Investment
zOy
le 25/03/2008 à 10:59
Afficher donnée au format HTML
Je n'est pas fait appel à la fonction htmlenties.

Voiçi mon code

<?
include 'config.php';
$sql = 'SELECT * FROM modif';
$req = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
$data = mysql_fetch_array($req);
$affichage = $data['texte'];
mysql_free_result ($req);
mysql_close ();
?>


<? echo stripslashes(nl2br(htmlspecialchars($affichage))); ?>
Blue Star Investment
zOy
le 25/03/2008 à 10:39
Afficher donnée au format HTML
Bonjour, j'ai des données que j'affiche à partir de ma base SQL.

Les texte sont en format HTML (<p>le <strong>texte</strong></p>)

et je voudrais pouvoir les afficher au format HTML car pour le moment ils s'affichent au format TXT.
Blue Star Investment
zOy
le 15/02/2008 à 12:24
Problème Mail
je ne vois toujours pas d'où vien l'erreur :s

je vous est fait une archive zip avec toutes les pages php qui me semblent être concerné par ce bug si quelqu'un veut bien jetter un coup d'oeil.

http://www.sites-a-vendre.eu/Nouveau dossier.zip
Blue Star Investment
zOy
le 15/02/2008 à 11:22
Problème Mail
Bonjour, j'ai un petit problème, je voudrais envoyer un e-mail avec des informations entrées sur une autre page ...

L'erreur
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites-a-vendre/public_html/offer.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home/sites-a-vendre/public_html/offer.php:11) in /home/sites-a-vendre/public_html/offer.php on line 41

ma page de traitement
<form method=post name=f2 onsubmit="return CheckContact();">
<table align=center width=400>
<caption align=center class=bh>&nbsp;
</caption>

<tr>
<td><strong>Votre offre </strong></td>
<td><input type=text name=oa class=InputField size=10 />
<font class=TableData> &euro;</font></td>
</tr>
<tr>
<td><strong>Civilit&eacute;</strong></td>
<td><select name="civilite" id="civilite">
<option selected="selected">Mr</option>
<option>Mme</option>
<option>Melle</option>
<option>Dr</option>
</select> </td>
</tr>
<tr>
<td><strong>Nom</strong></td>
<td><input type="text" name="nom" id="nom" /></td>
</tr>
<tr>
<td><strong>Pr&eacute;nom</strong></td>
<td><input type="text" name="prenom" id="prenom" /></td>
</tr>
<tr>
<td><strong>Votre e-mail</strong></td>
<td><input type="text" name="email" id="email" /></td>
</tr>
<tr>
<td>Votre societ&eacute;</td>
<td><input type="text" name="societe" id="societe" /></td>
</tr>
<tr>
<td>Fonction</td>
<td><input type="text" name="fonction" id="fonction" /></td>
</tr>
<tr>
<td>Adresse</td>
<td><input type="text" name="adresse" id="adresse" />
<br /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="text" name="adresse2" id="adresse2" /></td>
</tr>
<tr>
<td>Code postal</td>
<td><input type="text" name="textfield" id="textfield" /></td>
</tr>
<tr>
<td>Ville</td>
<td><input type="text" name="ville" id="ville" /></td>
</tr>
<tr>
<td>Pays</td>
<td><input type="text" name="pays" id="pays" /></td>
</tr>
<tr>
<td>T&eacute;l&eacute;phone domicile</td>
<td><input type="text" name="tfix" id="tfix" /></td>
</tr>
<tr>
<td>T&eacute;l&eacute;phone mobile</td>
<td><input type="text" name="tmobile" id="tmobile" /></td>
</tr>
<tr>
<td>Fax</td>
<td><input type="text" name="fax" id="fax" /></td>
</tr>

<tr>
<td valign="top"><strong>Votre message</strong></td>
<td class=TableData><textarea name=m1 rows=5 cols=30 class=InputField></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type=submit name=s1 value="Faire mon offre" class=SubmitButton /></td>
</tr>
</table>
</form>


la page d'envoi du mail
<?
if(isset($_POST[s1]))
{

$q1 = "select * from domain_domains, domain_members where domain_domains.domainid = '$_GET[DomainID]' and domain_domains.memberid = domain_members.memberid ";
$q1 = "update domain_domains set enchere = '$_POST[oa]'";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);


$to = $a1[email];
$subject = "Nouvelle offre pour ".$a1[domainname];
$message = "Une nouvelle offre a été posté \n\n";
$message.= "Montant de l'offre: $_POST[oa]\n\n";
$message.= "$_POST[civilite] $_POST[nom] $_POST[prenom]\n\n";
$message.= "Adresse e-mail : $_POST[email]\n\n";
$message.= "Societé : $_POST[societe]\n\n";
$message.= "Fonction : $_POST[fonction]\n\n";
$message.= "Adresse : $_POST[adresse]\n\n";
$message.= "$_POST[adresse2]\n\n";
$message.= "$_POST[codepostal]\n\n";
$message.= "Ville : $_POST[ville]\n\n";
$message.= "Pays : $_POST[pays]\n\n";
$message.= "Tel. Fix : $_POST[tfix]\n\n";
$message.= "Tel. Port : $_POST[tmobile]\n\n";
$message.= "Fax : $_POST[fax]\n\n";
$message.= "Message : $_POST[m1]\n\n";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: 8bit\n";
$headers .= "From: $aset[ContactEmail]\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";

mail($to, $subject, $message, $headers);

header("location: offers_posted.php");
exit();
}
?>
Blue Star Investment
LoadingChargement en cours