How do you Delete a Record using Form with submit button?

Hi,
The table REGISTRATION has two feilds, FULL_NAME and USER_GROUP. I created a form that has a drop down
of all the FULL_NAME values that allows the user to select the record that they want to delete. I got the drop down to work and
created the Delete Record behavior, I just can't get the submit button to send the form data and cause the delete to happen.
I have created other pages that update records in this way, but for some reason, I can't get delete to work.
Any Ideas?
Thank You in Advance,
Eric
Ps     Anyone know why this site locks up in I.E. on some PC's? My Company PC is locked down and they won't investigate. My laptop works but says error on page. I have the latest updates and JAVA ...
Here is the code:
<cfif IsDefined("FORM.Full_Name") AND #FORM.Full_Name# NEQ "">
  <cfquery datasource="ilmf_parts">
  DELETE FROM REGISTRATION
WHERE Full_Name=<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
  </cfquery>
  <cflocation url="index.cfm">
</cfif>
<cfquery name="REGISTRATION" datasource="ilmf_parts">
SELECT Full_Name, User_Group
FROM REGISTRATION
ORDER BY Full_Name ASC
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>User Delete Test Page</title>
</head>
<body>
<p align="center">USER DELETE TEST PAGE </p>
<p> </p>
<form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
  <table width="500" border="1" cellspacing="1" cellpadding="3">
    <tr>
      <th scope="col">NT Name </th>
      <th scope="col"><select name="select">
        <cfoutput query="REGISTRATION">
          <option value="#REGISTRATION.Full_Name#">#REGISTRATION.Full_Name#</option>
        </cfoutput>
      </select>
</th>
    </tr>
    <tr>
      <td> </td>
      <td><input type="submit" name="Submit" value="DELETE" /></td>
    </tr>
  </table>
  <p> </p>
  <p> </p>
</form>
<p> </p>
</body>
</html>

The name of your form control is "select".
<select name="select">
The name of your form field in your SQL is full_name
<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
You probably really want these names to match!
P.S.
Is your name field really a "clob" data type?  Just how long are these names anyway.
P.P.S.
Why are you relocating from the page index.cfm to index.cfm?
<form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
<cflocation url="index.cfm">

Similar Messages

  • I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Cent

    I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Central in order to use this feature. What gives? The Adobe site gave me the impression that I would have this feature after purchasing the new upgrade. I would not have purchased the upgrade, let alone five of them had I know this. Am I missing something?

    Acrobat XI comes with the Fromscentral AIR application and the ability to create PDF forms authored in Formscentral. To have more than the free (1 form with 50 responses) level account you need to sign up for a Formscentral subscription.
    Andrew

  • Acrobat form with submit button

    Have a coldfusion app that includes an acrobat form that contains a submit button.  The button submits the form to another CF page.  I'm making some fixes to this app and need to change where the form submits, currently it's going to production but i need it to go to test.  When I open the form in Acrobat 8 or Livecycle I don't see any script.  Anyone know where to change wheer this form posts?

    Not sure about LiveCycle, but here's how to do it in acrobat.
    1) Right click on Form Button -> Properties -> Actions
    You should see a list of actions associated with the button.  something like:
    - Mouse Up
           Submit a Form
    2) Select on "Submit a Form" and click "Edit" at the bottom of the screen
    3) Edit URL in "Submit Form Selections" window.

  • Form with Submit Button

    I recently purchased the acrobat professional 8 and tried to create forms that people can fill in and submit it to us. I tried email button but for some reason never get the email for the data. I thought about http button, but it need some scripting skill. I have some knowledge in ASP script but never create any script for form submission before. Can anyone show me some sample of how to create the script or point me to the right direction that I could have the submit button feature?
    Also, I seem some forms that can allow reader users to save the data that they type in the form onto their computer, do anyone know how to create a form with this feature?
    Thanks

    Use a regular button and change it's control type to submit. Under the Submit tab type in "mailto:youremailaddress". You can then either choose the Submit As for XML, which will send you the data that you can then import into the form or choose Submit As for PDF and you'll get the entire document.
    Also, open the form in Acrobat, go to Advanced > Enable Usage Rights in Adobe Reader. This will solve your problem.
    *one thing to note, if you ever make changes to your form be sure to do the Enable Usage Rights in Adobe Reader step again.

  • How do you save a PDF fillable form with a Samsung Tablet and still continue to have access to the original document?

    We are using the Samsung Note and have uploaded a PDF form for fieldwork crews to enter vegetation data. When we have filled in the form there is no option to save the form under a different name but rather the form simply saves itself with the most recent information placed in it. We understand that you can send it through Acrobat.com to your account but the tablet will not access this site while in the PDF app. Does anyone know of an app or a way that we can create individually saved files and still have access to the original on the tablet?

    It can also work if you certify the document and each user chooses to trust it to execute privileged JavaScript, which may be feasible in this setting. The method you'd use is doc.saveAs: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    Also, read the following tutorial: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • How do you set up a contact form with response in Muse?

    Contact forms are so easy in WordPress, there must be a way to set one up in Muse when a third party (1and1) is hosting your site.

    And why don't you simply use one of the built in form widgets? They work fine with 1and1.

  • How do you delete an iCloud email associated with the primary account?

    For instance, my @mac.com, me.com, and icloud.com are all the same address. Someone got ahold of my me.com and is spamming me.  I want to delete that one but I can't. Any help would be appreciated.  Thank you.

    mavenmike wrote:
    Oh yes now!
    Simply goto appleid.apple.com  (sign in) and do it all by yourself.
    This is not possible. [email protected], [email protected] and [email protected] are all the same thing, and you can't separate them.
    The solution is to set up a Rule on the iCloud website redirecting all messages addressed to [email protected] to the Trash or another folder.

  • Had prepaid visa on my account and now want  to use Itunes card and will not work how do you delete visa card from my account

    please help how do you delete visa from my account? I put in Itunes card and it shows my 15.00 credit but cannot download tunes. What do I need to do? I think visa card is issue

    I own the movies and I want them to stay in my iTunes library basically forever.
    But in both cases the file name no longer shows in the movie list, so I don't know how to re-download it from the Cloud.
    iTunes prefs > Store > Show iTunes in the Cloud purchases.
    This will show all your iTunes purchases in your library with a cloud icon down arrow. Click the icon to redownload or click on Play to stream without downloading.
    Also see this , -> Download past purchases
    and techncially, you don't "own" the movie, You simply have a license to use it.
    Yet the first thing iTunes does when you hit the delete key is tell you that it will remove the movie forever from all devices and the library.
    Actually, no it does not tell you that.
    FYI: You should keep copies of all yoru iTnue spurahses as the labels/movie studios/copyright owners can pull their product at anytime and it won't be available to redownload.
    Suggestions here -> http://www.apple.com/feedback/

  • How to Delete Multiple Records using selectbox in jsf

    Hi!
    My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
    rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
    <h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
    </h:selectBooleanCheckbox>
    But other functionality is not wokring.
    Can any one plz tell how to select the multiple records and how to send the id to the serverside.
    I want code code for jsp and as well as backingBean how to accaess .
    Any Reply shuld be apreciated

    You may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
    Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable.

  • How do you delete a form?

    How do you delete a form?

    In "My Forms"  select the form you want to delete and click on the delete button in the toolbar.
    Gen

  • How do you delete records from table with data in a select option

    how do you delete records from table with relevant to data in a select option..how to write coding

    Hi,
    Try
    if not s_select_option [ ] is initial.
    delete * from table
    where field in s_select_option.
    endif.
    commit work.
    Be careful though. If select option is emty, you will delete the entire table.
    Regards,
    Arek

  • Using a iPad.  How do you delete unwanted address from the drop down list.  I typed in a wrong address once, and now it keeps showing up.

    Using a iPad.  How do you delete unwanted address from the mail drop down list.  I typed in a wrong address once, and now it keeps showing up.

    Winfax1-
    Look in your Contacts App and see if the unwanted address is entered there.  If it is, you can delete it there.
    Fred

  • How do you delete a tag you no longer use in photoshop elements 12

    I have a few tags I no longer use. How do you delete a tag in Photoshop Elements 12

    Welcome to the forum.
    As Trevor points out, you need the Photoshop Elements Forum. I will Move your post to that very helpful and active forum. Your link, and any e-mail subscriptions will follow.
    Good luck,
    Hunt
    [Moved to Photoshop Elements Forum]

  • HT3771 how do you delete printer in last use when you try to add new printer again

    how do you delete printer in last use when you try to add new printer again?

    System Preferences > Print & Scan (Print & Fax on older versions of OS X)
    Select the printer and click the "–" (minus) button.

  • How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!

    Can someone please help me with this query:
    How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!
    I continue to have a pop saying that either the file in open somewhere in the serve- which it is not- and I cannot delete a particular pdf or edit it.
    It's incredibly frustrating and in the end I end up having four files with different names because it won't let me edit the original file!!!!

    Hi Amila1,
    Are the pdfs stored on a network location?
    If so is the Preview pane turned ON?
    Please check the doc: http://kb.globalscape.com/KnowledgebaseArticle10862.aspx
    Regards,
    Rave

Maybe you are looking for