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

WA Server Validation doing nothing!?

Thread began 4/15/2011 10:56 am by Nathon Jones Web Design | Last modified 4/19/2011 2:11 pm by Jason Byrnes | 1700 views | 5 replies |

Nathon Jones Web Design

WA Server Validation doing nothing!?

We have set up WA Server Validation on a client contact page and it's not doing anything?
Our form submits to a confirmation page and the form data from the contact form also isn't being passed to the confirmation page.

Here's the page in question:
contact-galloway-heathers.asp

...and this is the confirmation page:
contact-confirmation.asp

I have also attached both pages in a zip file.

We're also not receiving emails to the email addresses specified in the To and Bcc fields in our Universal Email server behaviour which we have set up on the confirmation page.

Are we doing something wrong in the set up on server validations? This isn't the first time this has failed and it isn't the first time that Universal Email hasn't worked correctly.

No matter what we do, however, we can't resolve the issue. It's extremely frustrating.

Hope someone can help. Thank you.
Regards
Nath.

Attached Files
ContactPage-ConfirmPage.zip
Sign in to reply to this post

Jason ByrnesWebAssist

All Form Processing must occur on the forms action page.

you have applied the server validation to the form page, but it submits to the success page. The server validation must occur on the page that the form posts to.

form data can be tricky to work with, keep these rules in mind when developing forms:
1) Form data is only available to the forms action page.
2) The Form data is cleared from the servers memory as soon as the action page finishes loading to the client browser.


When I test your form, I can see the data that I entered on the success page.


For the problems with the email sending, Try Leaving the From Name blank and only specify a from address.

try using a hard coded from address rather than dynamic, some servers will not relay the email message if the from address is not a valid email address from the same domain.

double check with the host to make sure you are using the correct SMTP Server address as well.

Sign in to reply to this post

Nathon Jones Web Design

switched them over

Thanks Jason,

I've switch that around then, with the Server Validation running on the confirmation page as opposed to the original form page.

I've added a Validation Show If to the form page though and it isn't appearing when the validation fails?

This is uploaded the same two URL's in the original post, and I also attach the new pages.

Thanks again.
Nath.

Attached Files
Contact-Confirm-Ver1-0.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 51 - 55:

<%
if (cStr(ValidatedField("contactconfirmation","contactconfirmation")) <> "") then
if ((inStr(("," & cStr(ValidatedField("contactconfirmation","contactconfirmation")) & ","),("," & "" & ",")) > 0 OR "" = "")) then
if (NOT(false)) then
%>



to:

<%
if (cStr(ValidatedField("contactgallowayheathers","contactgallowayheathers")) <> "") then
if ((inStr(("," & cStr(ValidatedField("contactgallowayheathers","contactgallowayheathers")) & ","),("," & "" & ",")) > 0 OR "" = "")) then
if (NOT(false)) then
%>
Sign in to reply to this post

Nathon Jones Web Design

?

Thank you Jason. That's fixed it.

What had I done wrong though? I simply ran a "WA Validation Toolkit > Validation Show If" and thought I'd followed the correct procedure.

Sign in to reply to this post

Jason ByrnesWebAssist

it looks like you applied the validation show if code when the validation was still on the form page and not after moving the validation to the action page.

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