How To Automaticaly Direct From One Page To Another Php Hmtl
Post Description:
Post Tags: how, to, automaticaly, direct, from, one, page, to, another, php, hmtl, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 671 Times Since Mon Dec 24, 2007 10:55 am Posted By
lesly with 1 replies
Next Post »»
PHP Help how to redirect web pages automatically send
i need some help, i have this website where it has a form, and after the from is submitted and all the checks have been done, i want it to automatically take the user back to the original page to where they were before without having them to click on a continue button or link, is that possible.
for example, my form is at form.php
once the form is submitted, it takes the user to submitted.php where i do all the error checks, once all the error checks are done and everything is ok, it adds the information into my database, then i prompt the user to click or enter the continue button. but i want it so that if there are no error, to just automaticaly send the user back to form.php instead of having them click to continue. can that be done?
Comments and replies About How To Automaticaly Direct From One Page To Another Php Hmtl
yes it can be done you can use the header() funcion in php:
on your submitted.php file once all the checks are ok, you can use this code:
header('Location: http://www.yourwebsite.com/form.php');
this will automatically redirect the user back to form.php instead of keeping the user in submitted.php