Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- jakeatkins via WebmasterKB.com
September 14, 2007, 7:40 pm
rate this thread
that in a variable, all within one .php file? I'm trying to set up an online
donation form that needs the amount entered before being sent to the payment
Thanks for the help!
Message posted via http://www.webmasterkb.com
- Adrienne Boswell
September 16, 2007, 5:29 am
Re: Storing Form text input in a variable in one file
You're going to need a lot more than the amount. You will need the
person's name, address, card number, expiration, etc. All that
information is in the FORM or QUERYSTRING (depending if the request was
GET or POST) object, a string of name/value pairs. It looks something
like: firstname=John&lastname=Doe&address=123 Any
You will probably want to have the form post to itself, validate the
results serverside, then send them to the gateway in whatever form the
gateway is expecting.
I would suggest first reading up on form processing in PHP, and then
reading the SDK for the gateway you are going to use.
Adrienne Boswell at Home
Arbpen Web Site Design Services
Please respond to the group so others can share