Menu
Hi,
Should not following get triggered only if a button is pressed such as submit button ?
[code]
if($_SERVER[‘REQUEST_METHOD’] = ‘POST’)
{
echo __LINE__; echo ‘<br>’; //LINE 62
It gets triggered, the IF condition, when I press ENTER in my browser and reload the page.
Since I did not press the SUBMIT button then the browser did not use the POST method. So, why the IF gets triggered here ?
Same gets triggered if I refresh the page: CTRL+R.
Why ?
Guessing the submit button gets auto clicked when page is reloaded. But this should not happen.
I get echoed:
**62.