Re: php and checkboxes
| From: | Robert Cummings | Date: | Tue, 23 Sep 2003 12:23:09 +0000 |
| Subject: | Re: php and checkboxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163583@lists.php.net to get a copy of this message | ||
On Tue, 2003-09-23 at 08:17, Angelo Zanetti wrote:
> Hi all,
>
> I have a table that gets populated from records of a DB. every row in the
> table has a checkbox and the items desc. I want the user to select the items
> they want and then they click on a link which registers the items they've
> selected in a session variable. Firstly I am not sure if this can be done on
> that same page or on the page to which the link calls. IE: if php can
> determine which checkboxes have been selected. All the checkboxes are all
> part of an array.
>
> this is the way it should work:
>
> 1. the user selects the items they want
> 2. then clicks a link to another page
Link can have javascript in it to either build a target URL or to submit
the form. I'd personally go for the form solution since the URL will be
ugly.
> 3. this page then displays what was selected
Form submits to the same page in which it is presented.
> 4. this info must be sent in a session variable.
Why? Set up the session variable using the data submitted by the form.
> 5. must not use a submit button as I want the info to be saved in session
> variable.
Once again why? Sure I can see not using a submit button, but I don't
see how that relates to the info being saved in a session variable.
>
> I hope that this makes sense.
Somewhat :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'