close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Obvious validation errors eliminated, but no email

Thread began 2/20/2010 6:05 pm by ablehands401419 | Last modified 2/21/2010 1:06 pm by Able Hands Handyman Services | 854 views | 3 replies |

ablehands401419

UPDATED, REAL EMAIL >>>Obvious validation errors eliminated, but no email

Let me start by saying I'm not a programmer. I find my way through most of it, but in an amateurish kind of way.

I have spent most of the day adding fields to my form and eliminating the validation errors. I have finally eliminated all of the obvious validation errors (those that show onscreen when filling out the form). Now when I submit my form, I don't get any errors, the page just seems to refresh and I don't get an email.

My test page is: contacttest.php
My current page, which works, is: contactus.php

The current page works, but does not have most of the fields that I NEED! Hence the redesign. Actually, once I get this page up and running the whole site is going to get a refresh >> I HATE my current site!

If need be you can try out the page. I own the site, and I'm prepared for an influx of testing. If you need something else from me, please let me know. I really want this page up and running so I can concentrate on the new site.

Matt

Sign in to reply to this post

stevenc330599

I am not a PHP programmer either, but have recently (with help) got my forms working.

Comparing your Lines 7 to 12 to the forms I have, there is a difference. Mine read:

if (isset($_POST["SimpleContact_submit_x"])) {
$WAFV_Redirect = "test.php?invalid=true";
$_SESSION['WAVT_test_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}

and again for my equivalent to your Line 32 I have the following code:

if (((isset($_POST["SimpleContact_submit_x"])) && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {

In both instances this code in my forms comes from the original files from WA.

The difference for example in Line 7 being in your code the:

$_SERVER["REQUEST_METHOD"] == "POST"

where my forms have:

isset($_POST["SimpleContact_submit_x"])

It might be worth changing these lines of code.

I hope this helps.

Sign in to reply to this post

Able Hands Handyman Services

Frustrating

I looked at the code noted by stevenc330599:

While his code is indeed different from mine, somehow my "customized" code is the same as the original .php file.

Now, I have down so much to these files that I don't know where I am anymore. Not only does the edited php not send email anymore, but now the one that was working last night doesn't work either.

I think I'm close to dropping back and punting (starting from scratch). I did not expect to put two solid days into this form.

Matt

Sign in to reply to this post

Able Hands Handyman Services

Must use real looking email address for testing

So, after much messing with and testing of my page. Editing & testing, editing again and testing... Over, and over and OVER I still was not receiving any emails from the form.

I decided to start completely from scratch. Deleted everything from my host. Built the new page, and re-uploaded everything to my host.

First test was with an email of 'name@att.net' went through just fine.
I reworked the thank you page.
Second test email - 'a@a.com' and I never received anything.

Long story short... Use a real or real looking email for your testing. At a minimum use 'a@abc.com' I know it works cuz that was my last test address just a few minutes ago.

Now I just need to rebuild my whole page again, with all of the fields that I want :-(
and then test WITH A REAL ADDRESS!!!

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