Forum Moderators: coopster

Message Too Old, No Replies

Form info send to two pages?

         

Menekali

5:45 pm on Sep 16, 2004 (gmt 0)

10+ Year Member



Id like to have a form data to one page, but have the browser navigate to a different page instead. Is there anyway to do this? I tried using the Header() etc.. but it still pushed back the page i didnt want to see. IS there anyway to do this?

Menekali

5:46 pm on Sep 16, 2004 (gmt 0)

10+ Year Member



just noticed my typo, id like to have the form SUBMIT the data hehe i left that word out

coopster

6:00 pm on Sep 16, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Menekali.

The PHP header() [php.net] function should be what you want. What do you have that isn't working?

P.S. You can click the owner edit area under your name on the
<-- left over there to edit your posts if necessary ;)

mincklerstraat

6:21 pm on Sep 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



oooh Menekali, your problem still ain't solved?

I didn't realize last time that the PHP 'action' file was producing output. It looks like you want to send the info to that 'action' page and then display that other page, without the viewer seeing the 'action' page.

If the form uses GET, you can do this kinda easy -- what you'll want to do is make a different 'action' page that the form data is sent to. Remember that snippet of code I posted last time? Go grab that, build up the $request string, and then do this:
$nothing = file('ht*p://thatdomain.com/?'.$requeststring;
(you don't need $nothing)

If not, you're going to have to do fancy-schmancy stuff with the PHP curl library. Yuk.

Menekali

2:39 am on Sep 17, 2004 (gmt 0)

10+ Year Member



Thanks alot bro, ill deffinately try this out tonight. Yea the last piece of code would still send the info, but the middle page (the one that i put that code into) wouldnt even show, it would show that action page. Ill try this out tonight bro and get back. Thanks.