Re: redirecting in the middle of a code
- From: "Paul Lautman" <paul.lautman@xxxxxxxxxxxxxx>
- Date: Sun, 25 May 2008 23:38:55 +0100
Raistlin Majere wrote:
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?
It is a 5 step process:
1) Go to groups.google.com
2) In the search box put Warning: Cannot modify header information
3) Click on the first article at the top of the page (it is an article in
this group)
4) Read
5) Think to yourself, why didn't I do that at the start.
.
- Follow-Ups:
- Re: redirecting in the middle of a code
- From: sheldonlg
- Re: redirecting in the middle of a code
- References:
- redirecting in the middle of a code
- From: Raistlin Majere
- 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: redirecting in the middle of a code
- Next by thread: Re: redirecting in the middle of a code
- Index(es):
Relevant Pages
|