NYCPHP Meetup

[nycphp-talk] Form Action Help

William E. Fisher wefisher at open-world.com
Wed Feb 5 19:04:00 EST 2003


Thanks Chris and George for your replies.

If I can refer to George's response, I think my confusion lies in step #3:
"Your PHP script submits a https/POST request to PayPal (or wherever)."

How do I write the command to submit that https/POST request to PayPal?

I'm sure this is pretty obvious, but I am completely blind to it.

Thanks, Bill

----- Original Message -----
From: "George Webb" <gw.nyphp at gwprogramming.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Wednesday, February 05, 2003 3:25 PM
Subject: Re: [nycphp-talk] Form Action Help


> Bill,
>
> Just to clarify what Chris said, since maybe the overall procedure
> is not obvious:
>
> The https/POST that goes to the PayPal server gets submitted by
> your PHP script, not by the end-user.  So your script can keep private
> whatever data it wants to.
>
> So the form action will go like this:
>
> 1/ User fills out your form and submits it to your server
>
> 2/ Your PHP script reads the form input and validates
> it or whatever
>
> 3/ Your PHP script submits a https/POST request to PayPal
> (or wherever)
>
> 4/ Your PHP script gets a response from PayPal
>
> 5/ Your PHP script parses the response and does appropriate
> action
>
> 6/ Your PHP script sends the resulting message back to the
> user.
>
> So the user will have no idea that steps 3-5 are going on,
> even if they read the HTML source.
>
> Hope that wasn't obvious!
>
>
> Best, George.
>
> George Webb
> gw.nyphp at gwprogramming.com
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>




More information about the talk mailing list