Massimiliano Rubino Massimiliano Rubino - 11 days ago 6
PHP Question

Pass user id in a mail form for registered user

I would like to pass the user id (that in a specific case is an email) in a email form. Here the php for registered user only:

$LOGIN_INFORMATION = array(
'zubrag' => 'root',
'admin' => 'adminpass',
'phuket@iceagethai.com' => 'phuket'
);


Here what I use in the form:

<input type="hidden" name="email" value="<?php global $id; ?>">


How should I write the form field?
I Google around and in but I think I mix up some solution...
Thank you

Answer
<input type="hidden" name="email" value="<?php echo $_SESSION['LOGIN']; ?>">

That works for me

Comments