<?php $testadr = $_POST['email']; require_once ('./include/verifyEmail.php'); $mail = prawidlowy_email($testadr); if ($mail == false) { //tu nastepuje ciag dalszy instrukcji ?>
acha kod verifyEmail.php:
<?php function prawidlowy_email($testadr) { // sprawdzenie prawidłowosci adresu pocztowego return true; else return false; } ?>
I wywala mi blad nastepujacy..
[02-Oct-2008 21:44:29] PHP Parse error: syntax error, unexpected T_RETURN, expecting T_STRING or T_VARIABLE or ' in /home2/public_html/strona/include/verifyEmail.php on line 7
Linia 7 to ten wiersz:
return true;
Przyznam kompletnie nie mam pojęcia czemu..