PHP : Post > Diaplay > Wait > Redirect

adelaidabartle

New Member
i post something from a form and the form's action is a page \[code\]perform.php\[/code\]when i go to \[code\]perform.php\[/code\]\[code\]<?php$g = $_POST['my'];sleep(3);echo ("sdfsdfdsfdsfdsfdsf");// a lot of other PHP & DB related code//after a lot of code last line isheader("Location: source.php");?>\[/code\]what it does is that it does everything that needs to be done and i see loading of page and after that loading i don't actually get to see \[code\]perform.php\[/code\] for which the code i have given... and i am directed to \[code\]source.php\[/code\] what i was intending is from the form page i go to \[code\]perform.php\[/code\] and there i will show some text and and after 3 seconds it will be redirected to \[code\]source.php\[/code\] but that failed...HOW TO DO IT
 
Back
Top