View Single Post
Old 11-13-2007   #3 (permalink)
Tash-n
Registered User
 
Join Date: Nov 2007
Posts: 5

Question Finally The member.php

Here is the warning produced from the member.php page

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\wamp\www\K2F1\Pages\member.php:6) in C:\Program Files\wamp\www\K2F1\Pages\member.php on line 475

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\wamp\www\K2F1\Pages\member.php:6) in C:\Program Files\wamp\www\K2F1\Pages\member.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\wamp\www\K2F1\Pages\member.php:6) in C:\Program Files\wamp\www\K2F1\Pages\member.php on line 545

Here is the code

Code:
<table width="555" height="300" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><?php
			session_start();
			if($_SESSION['s_logged_n'] == 'true'){
			include 'process.php';	
			?>
              <p class="style6">K2F1 Members Area</p>
              <p>
                <?php include 'menus.php' ?>

                <body>
                
                <div id="wrapper">
              </p>
              <p>
                <?php
			
			switch($_GET['change']){
			
			case 'password':
		
			echo '<form action="'.$_SERVER['PHP SELF'].'" method="post">
			<p>Current Password:<br>
			<input name="current" type="password"></p>
			<p>New password:<br>
            <input name="new" type="password"></p>
			<p>Confirm new password:<br>
			<input name="confirm" type="password"></p>
			<p><input type="submit" value="Change Password" name="changepassword"></p>
			</form>
			';
			
			break;
			
			case 'email':

echo '<p>
WARNING! - By changing your email address you will have to re-validate your K2F1 member account. Make sure you email address is 100% correct.</p>
<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<p>Current email:<br>
<input name="current" type="text"></p>
<p>New email:<br>
<input name="new" type="text"></p>
<p>Confirm new email:<br>
<input name="confirm" type="text"></p>
<p><input type="submit" value="Change Email" name="changeemail"></p>
</form>
';

break;

case 'account':

echo '<p>
WARNING - By closing your account, you will not be able to login to K2F1 again using these account details. Press the button below to confirm you wish to close your account</p>
<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<p><input type="submit" value="Close Account" name="closeaccount"></p>
</form>
';

break;

default:

echo '<p>Welcome to the K2F1 Members Personal Area!</p>';

}

?>
                  </p>
            <?php
} else {
header("Location: login.php");
}
?></td>
          </tr>
          <tr>
            <td height="1000">&nbsp;</td>
          </tr>
        </table>
Tash-n is offline