|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
can someone please clarify for me at this code means in a layman's language
for i = 1 to request.form("LinkId").count id = trim(request("id_" & i & "")) LinkId = trim(request("LinkId")(i)) if id <> "" then db_delete_grid_userlinks msg_list.add LinkId, "Deleted Link #" & LinkId end if next response.redirect request.servervariables("script_name") |
|
#2
|
||||
|
||||
|
for i = 1 to request.form("LinkId").count
Request the items in a form that are named "LinkId" (it appears as tho there should be many of them, so it will return a collection). Perform a loop for the max number of LinkId items id = trim(request("id_" & i & "")) LinkId = trim(request("LinkId")(i)) Gather a form item named id_X, where X starts from 1 through to the max number of LinkId items. db_delete_grid_userlinks appears to be a function call. msg_list.add LinkId, "Deleted Link #" & LinkId msg_list appears to be a dictionary (I'd need to see the definitions) response.redirect request.servervariables("script_name") reload the page, without any form or qureystring data being submitted. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > simplify please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|