Log user in after registrering

nikola1800

New Member
I want to log in the user after he registrered.So, you login in a form with POST method. Now i was thinking about doing it this way:\[code\]header("index.php?doLogin=Login&user_email=$usr_email&pass=$data[pwd]");\[/code\]But then, when you login its POST and not GET,\[code\]// Log inif (isset($_POST['doLogin']) && $_POST['doLogin'] == 'Login')...\[/code\]So what do I do? Another idea doing this maybe?
 
Back
Top