Haven't done in a while..

Results 1 to 3 of 3

Thread: Haven't done in a while..

  1. #1
    Join Date
    Dec 1969

    Default Haven't done in a while..

    Can&#039;t remeber how to delete records using a function by simply pressing a button with the Unique Record Id being passed into the function. Here is what I have:<BR><BR>Function Delete() <BR> sql = "DELETE FROM TABLE WHERE (id = " & ??? & ")"<BR> conn.Execute(sql)<BR>End Function %&#062;<BR>&#060;input type="button" name="Button" value="Delete" class="forminput" onclick ="Delete(&#060;%=rs("id")%&#062;)"&#062;

  2. #2
    Join Date
    Dec 1969

    Default Yeah...

    Read the FAQs on calling server-side script from client-side events. In the "Nature Of Things" category.<BR><BR>Craig.

  3. #3
    Join Date
    Dec 1969
    Indianapolis, IN

    Default You can't...

    run the sql from the client-side. The delete button should submit your form to another page (or itself) that will handle the delete on the server-side.

Posting Permissions

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