Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto forward to form

Status
Not open for further replies.

mrobinson

MIS
Oct 11, 2002
36
GB
Could somebody please tell me how to forward from one form to another with no user input. for example, my form takes information from one form and inserts it into the database. once this is done, i want it to forward onto another form to start the process again automatically. Thus the form is not seen, it just inserts the data and then goes onto show another form. Any help would be much appriciated.
 
if the form and processing pages are on different pages then use

Code:
header("location:nextformpage.html|php");

will work as long as there is no output to the browser


Bastien

Cat, the other other white meat
 
|PHP....

It probably should have read:

header("location:nextformpage.[html|php]");


More explicitly specifying:

header("location:nextformpage.html");
or
header("location:nextformpage.php");


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Yes, that is correct. Thought it was self-explanatory that it could be directed to either page type

my bad.

:)


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top