not following the form action

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
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

not following the form action

Post by dstefani »

Is there a way to submit a form to one script on a different server and yet not be redirected to that form, but to another page on the original server?

Thanks - dstefani
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

No, but you can use a redirect if you have access to the form action's page code.
zell11
Forum Newbie
Posts: 7
Joined: Mon Jun 04, 2007 5:24 pm

Post by zell11 »

Yes there is. you could make a SOAP connections. this is a technology that allows two diffrent applications talk to each other ie PHP and PHP, PHP and Java etc etc.

Hope this helps
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Everah wrote:No, but you can use a redirect if you have access to the form action's page code.
It is possible using cURL :wink:
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

Post by dstefani »

My code is PHP and the other form is Cold Fusion.

Can you give any more hints to help me get started?

Thanks

- dstefani
zell11
Forum Newbie
Posts: 7
Joined: Mon Jun 04, 2007 5:24 pm

Post by zell11 »

http://livedocs.adobe.com/coldfusion/7/ ... 000379.htm

Theres the one for cold fusion

http://dietrich.ganx4.com/nusoap/

theres one for php, both are cumented well so if you read them through you should be ok
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Jcart wrote:
Everah wrote:No, but you can use a redirect if you have access to the form action's page code.
It is possible using cURL :wink:
You know, the first thing that came to mind was cURL. I must have read that question wrong then, because originally, to me, it sounded like he wanted to post a form to a remote page and not actually go to that page, but redirect to a different page on the remote server. So I think I just didn't understand what he was talking about. My bad.
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

Post by dstefani »

To clarify:

I have a form on my server and I want to submit to a script on another server.

The remote script lets me do this, but the remote script also wants to thank me and take me to places I don't want to go.
I have no control over this.

I want to submit my form data to the remote script and stay on my server.

Right now I'm using a target="_new" in my form to avoid leaving my page, but that's a band-aid I'd like to avoid.

Thanks,

- dstefani
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Yeah, try cURL.
Post Reply