Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    2

    Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •