Is this posting to a form possible.
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Is this posting to a form possible.
I want to have variables like $first_name = 'Chris'; and stuff and send them to another site via post (thats all they except) and then fowarding a user to the page... with the same information i just posted. Is that possible? CURL?
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
I know, but I wanted to keep the information more secure by not showing the user anything in the HTML.
EDIT: Just read http://netevil.org/node.php?nid=937 can that work where I post data, say to Paypal, and then foward the user along with the posted data.
EDIT: Just read http://netevil.org/node.php?nid=937 can that work where I post data, say to Paypal, and then foward the user along with the posted data.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
First question: What have you tried so far?
Second question: Are you talking about redirecting and posting at the same time? If so, this was just asked about three days ago.
Second question: Are you talking about redirecting and posting at the same time? If so, this was just asked about three days ago.
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
I am so confused on how the CURL and stuff works, nothing yet. I want it to be like this. (if posssible) [which isn't what that 3 day old post did]
User clicks checkout.
PHP Pulls information from Database/Sessions...
POSTs or whatever Paypal needs over to paypal, then fowards them to where they enter there credit card information (on paypal).
User clicks checkout.
PHP Pulls information from Database/Sessions...
POSTs or whatever Paypal needs over to paypal, then fowards them to where they enter there credit card information (on paypal).
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
No, you are going to have to redirect them with some other mechanism. A header() redirect perhaps...
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Ok, well i just found this: http://ilia.ws/archives/152-Cross-Domai ... ction.html couldn't i do something like that to get the information to paypal.
Edit: Nevermind, cause that data won't be posted it needs to be posted.
Edit: Nevermind, cause that data won't be posted it needs to be posted.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA