[PHP-DB] How do I submit data AND send user to other page?

2002-08-26 Thread Gerd Ulrich
Hello, I want to build a questionaire where the user is guided through five pages of questions. How can I program PHP that the user gets to the second page after pushing the Submit-Button? My solution printed here doesn't work. Any hints are greatly apreciated! S. Maier ?php if ($submit) { //

Re: [PHP-DB] How do I submit data AND send user to other page?

2002-08-26 Thread Adam Williams
use an HTML form. Adam On Mon, 26 Aug 2002, Gerd Ulrich wrote: Hello, I want to build a questionaire where the user is guided through five pages of questions. How can I program PHP that the user gets to the second page after pushing the Submit-Button? My solution

Re: [PHP-DB] How do I submit data AND send user to other page?

2002-08-26 Thread Colin Odden
Hi Adam, I think that you have to put the header command before anything else. (that is, putting the header (Location:X) command at the bottom of your block might be the trouble) If putting it somewhere else in your script doesn't work, how about: echo htmlhead; echo meta

Re: [PHP-DB] How do I submit data AND send user to other page?

2002-08-26 Thread John Coder
On Mon, 2002-08-26 at 13:25, Gerd Ulrich wrote: Hello, I want to build a questionaire where the user is guided through five pages of questions. How can I program PHP that the user gets to the second page after pushing the Submit-Button? My solution printed here doesn't work. Any hints are