Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Jukka K. Korpela
September 12, 2006, 6:59 am
rate this thread
No. Not in HTML, and you don't want to get different data depending on
whether client-side scripting is enabled or not, do you?
You seem to think that HTML might be some kind of a programming language.
Well, it isn't.
"Resort to"? _Any_ reliable processing of form data _requires_ some
server-side code (though not necessarily in Perl, of course), so it's the
Real Thing to be done. You simply get the user input as defined by the form
markup and actual user actions, and then you can process it any way you need
It would be grossly unsafe to include product prices into the HTML markup
and rely on their correctness. Even a child could create a copy of your
form, edit it, and submit an order with the price set to 0.
Jukka K. Korpela ("Yucca")
- Jonathan N. Little
September 12, 2006, 2:32 pm
Re: sending hidden values AND option values at the same time ?
So to simplify a little of what Jukka wrote, you need to build an order
form that collects your product's part/stock numbers, quantities,
customer info then set that to *your* server-side script
(Perl|Php|Python|ASP|Whatever) that will
1) Verify the user input as valid
2) Look up prices and stuff (out of reach of customers)
3) Build and format data for PayPal
4) Transmit to PayPal
Your HTML form should not go directly to PayPal.
LITTLE WORKS STUDIO