Looping through forms items - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > ASP » Looping through forms items


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-08-2006   #1 (permalink)
clayton
Junior Member
 
Join Date: Jul 2006
Age: 28
Posts: 5
Default Looping through forms items

I have a from with four elements a checkbox and a textfield and two which are hidden. Jobid and userid.

The jobid is written once and the userid is

These are dynamic items from the database.

What i want to do is loop through the items and then insert the new values back into the database via an update statement.
Code:
<input type="checkbox" name="SS" value="1" checked>
<textarea name="frt" cols="35" rows="2">Joe</textarea>
<input type="hidden" name="d" value="44">


<%
values = Request.form("SS")
cti = Split(values, ",")

for i = 0 To UBound(cti)
str_sql = "UPDATE dJob SET [SS]="& cti(i) &", frt = "& &" where d=" & &" and v = "& &""
cn.execute(str_sql)
next %>
I'm pulling my hair out any help would be appreciated
Thanks
Clayton
clayton is offline   Reply With Quote


Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing of Business Forms... Evolution Graphics General Business Issues 3 09-01-2006 12:33 AM
What's the safest way to deploy a windows forms app? agaba175 .NET 1 08-04-2006 03:40 PM
Are there compatibility issues between ASP.NET and mobile Web forms? Nazir .NET 0 07-25-2006 10:28 AM
Take The Items Out Of The Store Geaux Home Base 31 10-24-2005 05:34 AM
[php] Submitting Forms Gaia Graphics & Multimedia 0 06-13-2005 12:43 AM


footer left
All times are GMT. The time now is 03:45 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Find Local Jobs | Cheap Fragrances | Credit Card Consolidation | Photography | Facebook proxy list

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49