Re: Need to maintain the integrity of the checkbox
| From: | Jason Wong | Date: | Thu, 29 Jul 2004 14:39:57 +0000 |
| Subject: | Re: Need to maintain the integrity of the checkbox | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192194@lists.php.net to get a copy of this message | ||
On Thursday 29 July 2004 22:04, Andrew Reilly wrote:
> I have created a form that lists the possible sponsorships of various
> events. I need to keep the names of the checkbox to identify the specific
> event, but the value is a dollar amount that needs to pass thru to the
> checkout area function. Without creating an array that would loose the
> events names (some events have the same dollar amount), how can I capture
> the dollar value(s) checked an pass them to the checkout form?
Not exactly sure what you're trying to do. However you seem to be wanting to
pass around monetary values via forms. In general this is a VERY BAD idea.
Data submmitted from forms should not be trusted. Instead you should only
link the events to their monetary values (using a back-end lookup table or
whatever) AFTER the form is submitted.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
An infallible method of conciliating a tiger is to allow oneself to be
devoured.
-- Konrad Adenauer
*/