Reply to Re: sending hidden values AND option values at the same time ?

Your name:

Reply:


Posted by Jukka K. Korpela on 09/12/06 06:59

Frederick Smith <someone@microsoft.com> scripsit:

> Is there some way that I can get the drop down to send different
> hidden values for the amount of the transaction AND the size.

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?

> but I dont even know of its possible to join
> the parameters together, let alone what sort of operator or syntax to
> use.

You seem to think that HTML might be some kind of a programming language.
Well, it isn't.

> If its just impossible, I will resort to perl scripting

"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
to.

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")
http://www.cs.tut.fi/~jkorpela/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация