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

rating

Mail not sent when using a form as a dynamic plugin

Thread began 4/30/2011 10:47 am by Rune Brynestad | Last modified 7/12/2011 9:55 am by Jason Byrnes | 1698 views | 7 replies |

Rune Brynestad

Mail not sent when using a form as a dynamic plugin

I have followed the video tutorial for Framework Builder. The google map (static plugin) and the forms (dynamic plugin) are working as expected.

I have also applyed email functionality to the forms. The default form (Send us a message) is workin as it should. Mail is sent and the user is redirected to the "thank you" page as he should be.

For the second form (Ask us a question) the mail is not sent and the user is not redirected to the "thank you" page. (No error messages. The user is redirected back to the contact page)

Email for both forms are set up the same way and the "Send us a message" page and the "Ask us a question" page are working when I test the plugin pages one by one.

The problem is that the "Ask us a question" page is not working when included as a dynamic plugin.

You can test it on live URL here: contact.php

I'm also attaching my working files.

Regards
Rune

Attached Files
frostyescape.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the forms action needs to include the querystring varaible to load the Ask A Question plugin on submit.

change:

php:
<form class="FrostyEscape_Basic" id="Default_FrostyEscape_Basic" name="Default_FrostyEscape_Basic" method="post"  action="<?php echo $_SERVER["PHP_SELF"]; ?>">



to:

php:
<form class="FrostyEscape_Basic" id="Default_FrostyEscape_Basic" name="Default_FrostyEscape_Basic" method="post"  action="<?php echo htmlentities($_SERVER["PHP_SELF"]); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentities($_SERVER["QUERY_STRING"]):""?>">
Sign in to reply to this post

Rune Brynestad

Works perfect.

Thanks.

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

Sign in to reply to this post

Rune Brynestad

Mail not sent when adding captcha security to my forms

I have added captcha security to my forms. The captcha looks ok, but emails are not sent after adding captcha security. Adding captcha security is the only modification I have done to the forms. Can you see why sending emails is not working after adding captcha security?

You can test it on live URL here: contact.php

I'm also attaching my working files.

Thanks in advice

Regards
Rune

Attached Files
Frosty.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the plugins/form_message file, the code that generates the captcha image:

<img src="../webassist/captcha/wavt_captchasecurityimages.php?field=Security_2&font=fonts/MOM_T___.TTF" alt="Security Code" class="Captcha" />


also sets the mname of the captcha session through the field querystring parameter.

the captcha session naming convention is:
captcha_<FieldQuesrtystring>


in th is case ht efiled questystring:
field=Security_2

is equal to:
Security_2

so the captcha session is:
captcha_Security_2


in the validation code:

php:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security"])?$_POST["Security"]:"")) . "",((isset($_SESSION["captcha_Security"]))?strtolower($_SESSION["captcha_Security"]):"") . "",true,5);




you are using a session named captcha_Security instead, change that to:

php:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security"])?$_POST["Security"]:"")) . "",((isset($_SESSION["captcha_Security_2"]))?strtolower($_SESSION["captcha_Security_2"]):"") . "",true,5);
Sign in to reply to this post

Rune Brynestad

Works perfect again.

Thanks.

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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