[PHP] simple ?- load page after submit

2004-01-23 Thread Matt Hedges
Hello, I've built a page where someone can enter in their information... currently, when they hit submit, a screen comes back and says thanks for entering your info. (echo Thank you! Information entered.\n;) I want when they hit submit for it to take them to their page

RE: [PHP] simple ?- load page after submit

2004-01-23 Thread Katie Dewees
Matt Hedges wrote: Hello, I've built a page where someone can enter in their information... currently, when they hit submit, a screen comes back and says thanks for entering your info. (echo Thank you! Information entered.\n;) I want when they hit submit for it to take them to their page

Re: [PHP] simple ?- load page after submit

2004-01-23 Thread John W. Holmes
From: Katie Dewees [EMAIL PROTECTED] Matt Hedges wrote: I want when they hit submit for it to take them to their page (personalpage.php?id=$id)... header(Location: personalpage.php?id=$id); Or, correctly: header(Location: http://www.yourdomain.com/personalpage.php?id=$id;); ---John

Re: [PHP] simple ?- load page after submit

2004-01-23 Thread Matt Matijevich
snip Or, correctly: header(Location: http://www.yourdomain.com/personalpage.php?id=$id;); /snip to add to what john said, you could make it a little easier to move your script from place to place if you use some php variables and the dirname function. this comes right from the manual: ?php