xfr33 Posted July 15, 2008 Report Share Posted July 15, 2008 (edited) 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( "daniels.pitkevics@lattelecom.lv", "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 July 15, 2008 by xfr33 Link to comment Share on other sites More sharing options...
andrisp Posted July 15, 2008 Report Share Posted July 15, 2008 Un pašu kļudu nevajag iepeistot tavuprāt ? Link to comment Share on other sites More sharing options...
black Posted July 15, 2008 Report Share Posted July 15, 2008 Un kurš aiz preces ieliks semikolu? (5. rindiņa no augšas) Link to comment Share on other sites More sharing options...
xfr33 Posted July 15, 2008 Author Report Share Posted July 15, 2008 bac... stulbais semikols! :D ok tulit pamēģināšu... andrisp es jau iekopēju. Link to comment Share on other sites More sharing options...
xfr33 Posted July 15, 2008 Author Report Share Posted July 15, 2008 paldies black :D aizgāja tgd! :D Link to comment Share on other sites More sharing options...
Recommended Posts