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

Validation just not working, at all! :o(

Thread began 6/17/2009 6:43 am by Nathon Jones Web Design | Last modified 6/18/2009 12:06 pm by Ray Borduin | 2469 views | 9 replies |

Nathon Jones Web Design

Validation just not working, at all! :o(

I had Client Validation setup on a form and had been having problems whereby spammers were still able to, somehow, submit links via my contact forms. I changed the validation to Server and now it's not working at all. The form submits through to my thank you page, no validation, nothing! :o(

Worryingly, it's also stopped my Universal E-mail from working correctly! Everything was fine until I switched to Server Validation.

I've got the validation triggering "When Submit is pressed". Should the validation actually be on my thank you page?

Is it ok to post links in this forum?

Would appreciate any advice, anyway, thanks.
Nathon

EDIT: Should the form's action be submitting to itself? Also, I just tried setting this up on another form and it also isn't working.

Sign in to reply to this post

Ray BorduinWebAssist

The validation code should be added to the form action page.

If the action points to the thank you page, then the validation should be added to that page as well.

Go ahead and post links to your sample pages. That helps since I could look at the action instead of just telling you to.

Sign in to reply to this post

Nathon Jones Web Design

Hi Ray,

Link is:
wigan-athletic-book.asp

I need the form to submit to the thank you page because I have Universal E-mail redirecting the form data to an e-mail address.

One problem though is that the thank you page is PHP, but the form page is ASP (don't ask!). Not sure if that will affect the validation, will it?

Am I going about this the wrong way?

Thanks again.
Nathon

Sign in to reply to this post

Ray BorduinWebAssist

This will effect the validation. Since it depends on Session variables for storing validation information and I don't think php and ASP sessions can communicate with eachother.

You can probably get the validation to work, but you won't be able to repopulate the form with the validated values on failure. You might be able to get around that by using WebAssist cookies toolkit and storing and retrieving the form from a cookie.

The validation code has to be applied on the form action page. So you would apply it on the thank you page.

Sign in to reply to this post

Nathon Jones Web Design

I thought that would be the case. That's a shame.

The host has said that CDONTS for ASP works on the Linux server but I'm getting the following MailFormat error from Universal Email on the thank you page:

Error Type:
Sun ONE ASP VBScript runtime (0x800A01B6)
Object does not support this property or method: 'MailFormat'
WA_Universal_Email/CDONTS_NewMail_VB.asp, line 86

If I can manage to sort that with the host, or you might be familiar with that error yourself, could I just ask about apply the Server Validation on both the form page AND thank you page?

I notice that you can't copy the server behaviour from the server behaviours panel, so do I just have to run through the validation setup again, on the thank you page?

Appreciate the help, thanks.
Nathon.

Sign in to reply to this post

Ray BorduinWebAssist

You can't copy and paste because you are going from an asp to a php page. You would have to apply it again on the new page.

Sign in to reply to this post

Nathon Jones Web Design

Would I be right in thinking that Universal E-mail can't be run under sunone asp?

Sign in to reply to this post

Ray BorduinWebAssist

You would be right that there is no gaurantee that it would work under sunone asp... but I think it probably could be configured to work properly with CDOSYS or CDONTS.

Sign in to reply to this post

Nathon Jones Web Design

I've added the validation to the thank you page, and it does appear to be redirecting back to my form page if it fails the validation. I also took your advice and used the Cookies Toolkit to re-populate the form (ta!).

How do I show validation errors though? When I'm returned to the form, upon fail, the user has no means of knowing which field is incorrect or, indeed, what the problem is.

Is this where the ASP/PHP relationship will cause problems?

Thanks again,
Nathon.

Sign in to reply to this post

Ray BorduinWebAssist

Yes it is.

Normally that information is passed in the session and since you have two different server languages they use two different sessions.

I think the only option would be to put the error session variable value into the redirect url on the thank you page.

Then on top of the form page look for that url parameter and reset the session variable based on the Request.Querystring value.... so basically use the URL to pass and reconstruct session variables.

Sign in to reply to this post
loading

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