virtuexru Posted February 26, 2007 Share Posted February 26, 2007 OK. I'm getting this error: Warning: Cannot modify header information - headers already sent by (output started at /**/**/public_html/config/connect.php:7) in /**/**/public_html/config/register_user.php on line 84 For a registration page... connect.php : <?php $connect = mysql_connect($dbhost, $dbuser, $dbpass); @mysql_select_db($dbname) or die("Unable to select database"); ?> register_user.php line 84 : $request = "INSERT INTO table values('','$username',PASSWORD('$password'),'$email')"; $insert_confirm = mysql_query($request); if($insert_confirm) { $message = "<html><body>Please do not respond to this message. <p/>Congratulations, this is a confirmation of your registration submittal at PostMyDay.com. Welcome aboard!</body></html>"; mail( $email , "Registration for aaa.com Successful", $message, "From: aaa.com" ); $confirmation = "[email protected]"; mail ( $confirmation , "New aaa User", $username , "From: aaa.com" ); header ("Location: success.php"); Die(); } else { echo mysql_error(); echo $username; } mysql_close(); Die(); Link to comment https://forums.phpfreaks.com/topic/40242-header-problem-what-the-hell-quick-help-needed/ Share on other sites More sharing options...
fert Posted February 26, 2007 Share Posted February 26, 2007 http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Link to comment https://forums.phpfreaks.com/topic/40242-header-problem-what-the-hell-quick-help-needed/#findComment-194695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.