Page 1 of 1

using php to redirect

Posted: Sat Nov 15, 2008 12:00 am
by nimbus510
I am VERY new to php and this is really my first use of it. I want to set up a mailer form to provide me with feedback. I've found a million php mailer forms on the web, but I want it to be absolutely simple. The one I've been using works fine and I have figured out how to tweek it to do what I want, almost.

So right now I have my form in an iframe on my page, so when the user submits the form, it will echo a message within the iframe.

What I WANT is to get rid of the iframe altogether, and just have it redirect to a new page once the form is submitted. It seems like this would be the easiest thing ever, but I am finding nothing.

Like I said I am very new to php, any help would be greatly appreciated! I can post the code if needed but I'm at work at the moment...

Re: using php to redirect

Posted: Sat Nov 15, 2008 1:23 am
by josh
First I'd get rid of the iframe and use a header redirect, failing that I'd output some javascript to the user's browser that upon rendering the page in the browser, would redirect the 'top' or 'parent' window of the frameset

Re: using php to redirect

Posted: Sat Nov 15, 2008 2:12 pm
by nimbus510
and what would that look like exactly?

Re: using php to redirect

Posted: Sat Nov 15, 2008 2:43 pm
by nimbus510
OKAY i finally get it now. thanks!