executing process of php file
Posted: Mon Jul 25, 2005 9:12 am
as I know (not sure), a php file is always re-executed from first line to last line after user presses a submit button - is this right?
for example, I add following code in a php file:
<?php
if(isset($_POST['form_Submit']))
{
//something
}
?>
//more html code here which includes a form with submit button.
if user presses submit button, the file will be re-executed from first line to last line, right?
If right, it causes a big visual problem: the file will be re-loaded again and whole page twinkles - bad visual performace.
how to avoid the problem?
thanks
for example, I add following code in a php file:
<?php
if(isset($_POST['form_Submit']))
{
//something
}
?>
//more html code here which includes a form with submit button.
if user presses submit button, the file will be re-executed from first line to last line, right?
If right, it causes a big visual problem: the file will be re-loaded again and whole page twinkles - bad visual performace.
how to avoid the problem?
thanks