using php to redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nimbus510
Forum Newbie
Posts: 3
Joined: Fri Nov 14, 2008 11:50 pm

using php to redirect

Post 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...
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: using php to redirect

Post 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
nimbus510
Forum Newbie
Posts: 3
Joined: Fri Nov 14, 2008 11:50 pm

Re: using php to redirect

Post by nimbus510 »

and what would that look like exactly?
nimbus510
Forum Newbie
Posts: 3
Joined: Fri Nov 14, 2008 11:50 pm

Re: using php to redirect

Post by nimbus510 »

OKAY i finally get it now. thanks!
Post Reply