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
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
How I can get this value with out submitting the page
You can't get its value in PHP without submitting your from, use JavaScript instead to get its value.
Example:
alert(document.getElementById('t').value);
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?