If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > What does this code do?....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-04, 15:49
shadowspell shadowspell is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
What does this code do?....

Can someone tell me with some detail what the following code does?

sDelete = Replace(Request.Form, "&dev_accept=", ",")
sDelete = Replace(sDelete, "dev_accept=", "")

The variable dev_accept is a checkbox. Why is there an '&' just before the variable name?

Thanks,
Chris
Reply With Quote
  #2 (permalink)  
Old 12-02-04, 16:57
shadowspell shadowspell is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Red face crazy code

With some experimenting it appears I got ahold of some weird code.
The following worked just fine...

sDelete = Request.Form("dev_accept")

sDelete contains the values of the checkbox dev_accept. the content of dev_accept is the record 'id' of all records 'checked' separated by commas.

Anyway, I found my answer, I hope this helps someone else.
Chris
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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