I have made an hidden html field
<input type="hidden" name="t" id="t" value="something">
<? // value here?>
How I can get this value with out submitting the page
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. PHP is server side. This means, PHP’s job is finished as soon the page finished loading.
You could send the form value to your PHP script with AJAX, which would be in the background – no submitting or refreshing needed.
Edit: Did you mean to ask, how you can get the value for your hidden input after the page was generated?