"Ross J. Reedstrom" wrote:
Hi all - I've got a form feeding an SQL insert query where I need to be able to allow the user to enter a list of items into a single form entry, which is parsed by the SQL method into multiple 'insert' commands into a table. I want to do this in the SQL Method, rather than my action page, to avoid one level of calls. This looks like a job for a param:list type parameter, and a #in param block, but I haven't been able to get that to work. My comma separated list ends up being treated as a single item list. So, I decided to try the param:tokens trick - this worked great, with a space separated list, but fails when there's only one item entered - that returns a string, which gives me a "can't use a string with #in" error. Any ideas?
I can't reproduce this. :tokens should always give a list.
Here's what I've got:
in add_person_form:
<... rest of form/table deleted> <tr><td>PerDegree</td><td><input type=text name=PerDegree></td></tr>
Where is ':tokens'? Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.