Jump to content
php.lv forumi

kļūda


xfr33

Recommended Posts

Nu esmu uztaisījis email formu. viss bija ok līdz sāka mest kļūdu ārā. :@

es pārskatīju visu... nu nevaru atrast... varbūt kāds palīdzēs?

 

HTML Fails

 

<html>
<head><title>Aizpildi formu</title></head>
<body>
<form method="post" action="sendmail.php">
 Firmas nosaukums: <input name="firma" type="text" /><br />
 Vārds, uzvārds: <input name="uzv" type="text" /><br />
 Kontaktinformācija: <input name="tel" type="text" /><br />
 Prece:<textarea name="prece" rows="6" cols="30">
 </textarea><br />
 <input type="submit" />
</form>
</body>
</html>

 

PHP Fails

 

<?php
 $firma = $_REQUEST['firma'];
 $uzv = $_REQUEST['uzv'];
 $tel = $_REQUEST['tel'];
 $prece = $_REQUEST['prece']

 mail( "[email protected]", "Pasūtījumi",
$prece, "From: $firma" );
 header( "Location: http://www.delfi.lv" );
?>

 

Uzrāda, ka kļūda ir PHP faila 7 rindā...

 

Parse error: syntax error, unexpected T_STRING in /home/a1722052/public_html/sendmail.php on line 7

Tas tiek uzrādīts!

Edited by xfr33
Link to comment
Share on other sites

×
×
  • Create New...