Aide pour php
aidepourphp
-
muska92 Messages postés 277 Date d'inscription Statut Membre Dernière intervention -
muska92 Messages postés 277 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
J'ai un problème avec le code suivant :
venteebay.php >>>
<?php
$to = 'contact@tecnikelectrique.com';
$subject = 'Vente eBay';
$message = '<html>
<body>
<p>Prix : $ <?php echo $_POST['prix']; ?><br>
Type : <?php echo $_POST['type']; ?>
<h1 style="color: blue;"><?php echo $_POST['title']; ?></h1>
<br /><hr />
<?php echo $_POST['description']; ?>
<br /><br />
<h1 style="color: blue;">Shipping and Handling</h1>
<br /><hr />
<TABLE WIDTH=265 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=124>
<COL WIDTH=123>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>Canada</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>United States</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>International</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
</TABLE>
<br /> <br />
<h1 style="color: blue;">Payments</h1>
<br /> <hr />
</body>
</html>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From: "Mon super site" <contact@supersite.com>' . "\r\n";
$headers .= 'Cc: "Contact" <contact@supersite.com>' . "\r\n";
$headers .= 'Bcc: "Contact" <contact@supersite.com>' . "\r\n";
$headers .= 'Reply-To: "Members" <membres@supersite.com>' . "\r\n";
$mail = mail($to, $subject, $message, $headers);
if($mail) echo 'OK';
else echo 'Erreur.';
?>
Et le html >>>>>>>>
<html>
<head>
<title>Préparation vente eBay</title>
</head>
<body>
<form type="post" action="venteebay.php">
<p>
Nom de l'article : <input type="text" name="title" id="title">
<br>Prix approximatif : <input type="text" name="prix" id="prix">
<br> ??? Des recherches seront faites pour fixer un prix ??? <br>
Type d'annonce (Enchère, achat immédiat) : <input type="text" name="type" id="type">
<br><br>
Description : <br />
??? Des recherches seront faites pour trouver le plus d'informations pour l'annonce ??? <br>
<input type="textarea" name="description" id="description"><br>
L'annonce sera montrée avant d'être validée<br>
<input type="submit" value="Valider">
</form>
</body>
</html>
Voici le code erreur quand je valide :
Parse error: syntax error, unexpected T_STRING in /home/tecnikel/public_html/venteebay.php on line 6
J'ai regardé la ligne 6 et je me suis dit que peut-être que le php est bloqué dans les messages...
Merci
J'ai un problème avec le code suivant :
venteebay.php >>>
<?php
$to = 'contact@tecnikelectrique.com';
$subject = 'Vente eBay';
$message = '<html>
<body>
<p>Prix : $ <?php echo $_POST['prix']; ?><br>
Type : <?php echo $_POST['type']; ?>
<h1 style="color: blue;"><?php echo $_POST['title']; ?></h1>
<br /><hr />
<?php echo $_POST['description']; ?>
<br /><br />
<h1 style="color: blue;">Shipping and Handling</h1>
<br /><hr />
<TABLE WIDTH=265 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0>
<COL WIDTH=124>
<COL WIDTH=123>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>Canada</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>United States</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=124>
<P>International</P>
</TD>
<TD WIDTH=123>
<P> $ USD</P>
</TD>
</TR>
</TABLE>
<br /> <br />
<h1 style="color: blue;">Payments</h1>
<br /> <hr />
</body>
</html>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From: "Mon super site" <contact@supersite.com>' . "\r\n";
$headers .= 'Cc: "Contact" <contact@supersite.com>' . "\r\n";
$headers .= 'Bcc: "Contact" <contact@supersite.com>' . "\r\n";
$headers .= 'Reply-To: "Members" <membres@supersite.com>' . "\r\n";
$mail = mail($to, $subject, $message, $headers);
if($mail) echo 'OK';
else echo 'Erreur.';
?>
Et le html >>>>>>>>
<html>
<head>
<title>Préparation vente eBay</title>
</head>
<body>
<form type="post" action="venteebay.php">
<p>
Nom de l'article : <input type="text" name="title" id="title">
<br>Prix approximatif : <input type="text" name="prix" id="prix">
<br> ??? Des recherches seront faites pour fixer un prix ??? <br>
Type d'annonce (Enchère, achat immédiat) : <input type="text" name="type" id="type">
<br><br>
Description : <br />
??? Des recherches seront faites pour trouver le plus d'informations pour l'annonce ??? <br>
<input type="textarea" name="description" id="description"><br>
L'annonce sera montrée avant d'être validée<br>
<input type="submit" value="Valider">
</form>
</body>
</html>
Voici le code erreur quand je valide :
Parse error: syntax error, unexpected T_STRING in /home/tecnikel/public_html/venteebay.php on line 6
J'ai regardé la ligne 6 et je me suis dit que peut-être que le php est bloqué dans les messages...
Merci
A voir également:
- Aide pour php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP