Massimiliano Rubino Massimiliano Rubino - 1 year ago 75
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:

'zubrag' => 'root',
'admin' => 'adminpass',
'' => '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 Source
<input type="hidden" name="email" value="<?php echo $_SESSION['LOGIN']; ?>">

That works for me

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download