Storing Form text input in a variable in one file

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is it possible to have a user enter an amount into a textbox and then store
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
processor form.

Thanks for the help!

Message posted via

Re: Storing Form text input in a variable in one file

Gazing into my crystal ball I observed "jakeatkins via"

Quoted text here. Click to load it

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

Site Timeline