Jump to content

Store data upon login for later use


Pavlos1316

Recommended Posts

allready use

 

session_regenerate_id();
$member=mysql_fetch_assoc($result);
$_SESSION['SESS_ ID']=$member['ID'];
//Write session to disc
session_write_close();
header("location: member-index.php");
exit();

 

to know that user is authendicated.. how can i use that to have my info stored?

ok.. i use the below to sent email after registration.

 

$subject="$yoursite Registration";
$message="Dear $Name, 

Welcome $Username

Your are now a registered member of $yoursite


For any information you need or any suggestion to make
just contact us at $youremail

Thank you,
$webmaster";

mail($E_mail, $subject, $message, "From: $yoursite<$youremail>\nX-Mailer:PHP/" .phpversion());

 

How do i combine this with $_SESSION['SESS_ ID'] to send user an email when submiting the form?

I use this on the top of my page where I have my form

 

//Start session
session_start();
//Check whether the session variable
//SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_ID']) || (trim($_SESSION['SESS_ID'])=='')){
header("location: http://www.sonophoenix.com/");
exit();
}

 

How do i set the email function now to send email to the current user?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.