Jump to content

Recommended Posts

Hi Everyone,

 

I am having a problem here.

 

I am trying to send mail to a list of selected people. So I have used check-boxes for multiple select.

The list comes from the database. I have used pagination with a limit of 10 records in a page.

Now I select say 3 records in page 1 , go to the next page and select 2 from there. I want the mail to be sent to all 5 people when I click submit. But the mail is sent only to the values selected on the page in which I click 'send' , which is the submit button.

 

Is there any way to retain the selected checkbox values ?

 

Thanks in advance,

 

Anshu

One way would be to store them in a session array. Add another checkbox to the forms to flag "Selection complete", or even a second submit button. When that is checked, process all the selection on submission.

You can store all the selected value in a Session variable and pass this variable to next page and other wise you can use another approach write an ajax function and save the ID's in a temporary table on checkbox onclick., so when you click submit button fetch all the ids from temp table and send mail once mail is send truncate table.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.