This ought to do it:

Create all the check boxes you want in the list with the same name, and
set the values to the unique identifier for each user.

<cfoutput>
<cfif isDefined('form.userlist')>
The following users were selected:<br>
#form.userlist#
</cfif>
<form action="#cgi.script_name#" name="testform" method="post">
<input type="Checkbox" name="userlist" value="user1">
<input type="Checkbox" name="userlist" value="user2">
<input type="Checkbox" name="userlist" value="user3">
<input type="submit" value="test">
</form>
</cfoutput>

Spike

Stephen Milligan
Team Macromedia - ColdFusion
Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
Management'
http://spikefu.blogspot.com

> -----Original Message-----
> From: Dave Phipps [mailto:[EMAIL PROTECTED]] 
> Sent: 15 October 2002 13:06
> To: ColdFusion User group
> Subject: [ cf-dev ] SOT: Checkboxes to list for next/previous 
> functionality
> 
> 
> Hi,
> 
> I have a list of users each with a checkbox alongside holding the 
> userid.  I want to be able to take the selected checkboxes 
> and place the 
> values into a list which I can then pass in the url of the 
> next/previous 
> links.
> 
> I basically want to be able to remember which checkboxes have 
> been selected 
> no matter how many times someone goes backwards and forwards. 
>  Once all the 
> required checkboxes have been chosen then I want this final 
> list to be 
> submitted as a hidden form field.
> 
> I have looked at a load of javascript sites but can't find 
> quite the right 
> code.  Has anyone done this before or can give me a snippet 
> to get things 
> going?
> 
> Sorry for the OT post.
> 
> Cheers
> 
> Dave
> 
> 
> ============================================
> Phipps CF Development
> Oxford, Oxfordshire.
> Telephone: +44(0)7718 896696
> http://www.phipps-cf.co.uk 
> ============================================
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to