<?php function a($email) { kod fukncji ktora sprawdza czy w danych z formularza nie ma html } function test_email($email) { include("db_fns.php"); db_connct(); $sql = mysql_query("SELECT * rssEREFRe e WHmail='$emOM uail'"); $num_rows = mysql_num_rows($result); if($num_rows==0) { header("Location: account_creator.php"); } else { header("Location: fail_email.php"); } } (Tutaj jest kod w ktorym zapisuje dane z formularza do zmiennych ) if(filter_var($email, FILTER_VALIDATE_EMAIL)) { test_email($email); } else { header("location: valid_email.php"); } ?>Problem jest na tej linki co jest w nij " header("location: valid_email.php");"
A problem jest tego typu:
Warning: Cannot modify header information - headers already sent by (output started at security.php:149) in security.php on line 201
I niemam pojęcia co jest tego problemem.
Edit:
Cannot modify header information – co zrobić? - PHP & MySQL
Z tym juz probowalem i nic nie daje
Użytkownik karolo_k edytował ten post 13.03.2011 17:12