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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UE307 and waDBsearch

Thread began 12/10/2009 10:55 pm by p_vouers282571 | Last modified 12/11/2009 2:41 pm by Jason Byrnes | 914 views | 3 replies |

p_vouers282571

UE307 and waDBsearch

When using dbsearch the page that receives the results of the search.. if I place a send button on it that triggers UE, will I then be able to use the loop function referencing that db search result to send mail ONLY to the people in the results.

The reason I ask is because dbsearch is a little confusing.. I place a recordset on the page then the wizard places the search info on that page in a repeat region I made.

The result had 8 records out of 350.. I don't want UE to send to all 350

I wasn't sure if this should be posted to the dbsearch area or here so If it needs to be asked there I'll move it.
Thanks
phil

Sign in to reply to this post

Jason ByrnesWebAssist

make sure that the search form is crated using the GET Method so the search criteria are sent using the query string.


Then on the results page create the send button in a form that uses the post method, but whose action will send the currant query string:

php:
<form name="form2" method="post"  action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>">

  <input type="submit" name="button" id="button" value="Submit">
</form>




This will cause trigger the email to send. The recordset results will be limited to the search criteria so will only send the 8 emails.

Sign in to reply to this post

p_vouers282571

originally dbsearch set the form up as a post, I changed it to a get then added the php script on the result page. But it then sent all the emails. I put it back as beforE and it just sent the emails that were selected by the search
Phil

Sign in to reply to this post

Jason ByrnesWebAssist

Yeah, if it was originally set up as a post, changing the form method will break things. After changing the form method you need to change the re bind the form in the serch to change the code from using the POST collection to using the GET collection. but if it is working for you, now, that is good.

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