php - Take info of current page when pressing a button -


i have question php. sure has answered can't express search. so, have page user profile. in page there button.

when press key want somehow take id of user the profile belongs.

i think in jsp can request object, not sure.

if it's form submit put user id in hidden input on page. like:

<input type="hidden" name="user_id" value="<?php echo $your_user_id; ?>" /> 

then when click button submit form available in variable $_post['user_id'] if used post method or $_get['user_id'] if used method.

if want without submitting form need use javascript make ajax call.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -