php - Pass user id in a mail form for registered user -


i pass user id (which email, in case) in email form. here php registered users only:

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

here use in form:

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

how should write form field? googled around confused...

what importance of inserting user id on input field? if want reuse user id after user login system, assign user id on session variable , user id session variable.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -