Kris,
One idea is to have a page with a single text box, a hidden field, and "Save
and Add Another" button. The form submits to itself. So, the basic flow of
the page is like this:
<CFIF IsDefined("Form.TextBoxName")>
<CFIF IsDefined("Form.HiddenFieldName")>
<CFSET Variables.KeywordList=Form.HiddenFieldName & "," &
#Form.TextBoxName#>
<CFELSE>
<CFSET Variables.KeywordList="" & "," & #Form.TextBoxName#>
</CFIF>
<CFELSE>
<CFSET Variables.KeywordList="">
</CFIF>
<!--- HTML and stuff. --->
<!--- Form whose action is set to come back to the same page. --->
<!--- TextBox --->
<!--- Hidden field set to Variables.KeywordList --->
<!--- Save and Add Another button, submits form. --->
<!--- Save and Exit button, submits form, but with different button value.
You'll have to check for this button value in the code at the top of the
page: in the Save and Exit case, add the last keyword and save the data to
the database. --->
<!--- Close Form --->
That's the basic idea. Then just make sure events are set so that hitting
Enter defaults to Save and Add Another. That will make data entry really
fast. You can also spit out the current list of keywords on the screen so
the user knows what they've already entered. Given the comma-separated
list, you can use List functions to manipulate the contents.
Hope this helps,
Matthieu
-----Original Message-----
From: Kris Pilles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 2:37 PM
To: CF-Talk
Subject: Comma seperaed help
I have to give our users a screen where they can enter multiple
keywords. Initially I was thinking of 1 gib memo field and the user
could speerate the words with a comma but im not so sure they actually
remember to put the comma in. Soooo I figured I would ask you guys
what my other options are? Also, I want to avoid giving them 20 text
boxes to put in keywords with...
Any suggestions would help
Thanks
KP
Kris Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists