How To Automaticaly Direct From One Page To Another Php Hmtl

Mobile
feeds
Welcome Login | Register

How To Automaticaly Direct From One Page To Another Php Hmtl
  Forums Index
      » PHP Forums
        » » how to automaticaly direct from one page to another php hmtl



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
How To Automaticaly Direct From One Page To Another Php Hmtl
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?


Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About How To Automaticaly Direct From One Page To Another Php Hmtl




:: 1 :: Reply #32926 Reply By hostman On Mon Dec 24, 2007 10:57 am
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