close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple emails still being sent using Universal Email

Thread began 6/15/2015 9:58 am by illbe322016 | Last modified 6/16/2015 1:17 pm by illbe322016 | 1507 views | 7 replies

Ray BorduinWebAssist

I see you are doing everything with URL parameters instead of form POST values... and you aren't even redirecting after sending the email.

That means that if the user closes their browser window and then opens up their browser again a few days later and it is set to re-open previous pages, it will send the email again. Also if someone refreshes the page, or goes to it in their history. They could even post it and send it to someone and it could be indexed and followed by bots and send emails.

I'd suggest maybe setting a session variable on the first page and clearing it after sending the email and adding a check to see that session variable exists before sending the email so that they would have to go back to the first page and fill it out instead of just refreshing or re-visiting the second page.

So on aircraft-engine-quote.php add this to the top of the page:


if ((isset($_GET["MM_insert"])) && ($_GET["MM_insert"] == "quoteForm")) {
$_SESSION['sendonce'] = 1;

Then on your pyaQuoteDataResults.php page add this to the very top:



and then update the email trigger on line 104 to:

if ((!($totalRows_WADApyaQuoteData == 0)) && isset($_SESSION['sendonce']))     {

then below the email code before any html add:



That should ensure you only send one email per insert into the database no matter what.

( also you have script and css code above your <html> tag on the results page.... the code from lines 235-259 should be moved inside the <head> tag that begins on line 263 )

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





Ease of use


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