close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

adding multiple item delete button

Thread began 8/25/2015 2:31 pm by Ericspecullaas | Last modified 9/10/2015 7:04 pm by Ray Borduin | 390 views | 8 replies |

Ericspecullaas

adding multiple item delete button

Greetings I was trying to add a multi delete function on the results page but to no avail. I have used http://www.webassist.com/tutorials/Create-a-multiple-record-delete-form and when tried to delete something it doesn't work even on a live server as seen here http://www.betatestpage.com/sample2/sample_form_delete.php.

this example is really easy to use and is perfect for what I need to have done.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the page. I'd have to look at the php to see why it might not work.

Sign in to reply to this post

Ericspecullaas

here is the page but its from the tutorial

Attached Files
sample_form_delete.php
Sign in to reply to this post

Ray BorduinWebAssist

Your checkboxes don't have a value. Try adding value="1" to the checkboxes.

Sign in to reply to this post

Ericspecullaas

i added this

<input type="checkbox" value="1" name="checkbox_<?php echo $RepeatSelectionCounter_1; ?>" id="checkbox_<?php echo $RepeatSelectionCounter_1; ?>" />

and still no change. here is the updated page attached as well not sure if that helps or not

Attached Files
sample_form_delete.php
Sign in to reply to this post

Ray BorduinWebAssist

You have spaces in your form submit button. You can't have spaces in the name.

Update the name and id attributes of the button on line 126 so they don't use spaces. Then update the trigger on line 42 to match the name.

Sign in to reply to this post

Ericspecullaas

greetings I did update both lines and im still getting it to were it dumps the whole db not single items or multiple items.

Attached Files
sample_form_delete.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like this is set up to delete any records where the GenreName matches a field entered into one of the form fields named "name".... I don't think that is what you want. I think you wanted to use the checkbox field and you should set its value to the ID of the record you want deleted.

Sign in to reply to this post

Ericspecullaas

that worked perfectly.


thank you for the help Ray

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...