redirecting in the middle of a code
- From: Raistlin Majere <pedbessa@xxxxxxxxx>
- Date: Sun, 25 May 2008 15:01:22 -0700 (PDT)
if ($email != VALID_email)
{
header("Location: create3.php?error=invalid_email");
} else if (!empty($db_email)) {
header("Location: create3.php?error=already_email");
} else {
if($password != VALID_PASSWORD)
{
header("Location: create3.php?error=invalid_password");
} else if (!empty($db_password)) {
header("Location: create3.php?error=already_password");
} else {
mysql_query('INSERT INTO `accounts` VALUES (``, $email,
$password)');
header("Location: index.php");
}
}
mysql_close();
Warning: Cannot modify header information - headers already sent by
(output started at C:\AppServ\www\opinionsofamateurs\accounts
\create2.php:12) in C:\AppServ\www\opinionsofamateurs\accounts
\create2.php on line 32
How to solve?
.
- Follow-Ups:
- Re: redirecting in the middle of a code
- From: Paul Lautman
- Re: redirecting in the middle of a code
- Prev by Date: Re: With all do respect Gentlemen
- Next by Date: Re: With all do respect Gentlemen
- Previous by thread: With all do respect Gentlemen
- Next by thread: Re: redirecting in the middle of a code
- Index(es):