close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form submitting without validation

Thread began 3/07/2013 5:30 pm by sandy170299 | Last modified 3/18/2013 2:14 pm by Jason Byrnes | 1535 views | 17 replies |

sandy170299

Form submitting without validation

I have set up server side form validation to run when submit is pressed, but it's not working and the fields I identified as required, are submitting if left blank. I'm also setting a session variable if the form is submitted, and that doesn't appear to be working either.

I'm attaching my page. Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

the page you sent is named register.php, but the forms action is set to post to another page:

<form action="register2.php" method="POST" name="form1" class="clean">

change the action to the same name as the page so that the form is posting to itself.

all form processing must occur on the action page.

Sign in to reply to this post

sandy170299

But the page has to redirect to register2.php. Can I insert this code somewhere in it then, or how should I go about this?

header('Location: register2.php/');

I'm also going to be adding Universal Email to the page as well, so maybe I should have the page redirect AFTER Universal Email runs?

Sign in to reply to this post

sandy170299

I changed the action to register.php, but it still doesn't validate - it just returns it to register.php.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

sandy170299

Jason, I couldn't wait. I ended up just using some client side validation instead. If I run into this again, I'll post it again. Okay? Thank you! By the way, what happened to the WA client side validation that used to exist?

Sign in to reply to this post

Jason ByrnesWebAssist

The Client Side validation was replaced by spry validation.

Sign in to reply to this post

sandy170299

Does a tutorial exist for how to implement it? Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Spry validation is a Dreamweaver framework:

WSC0A9CA2A-E807-441a-ACC2-7B5E7A503C74a.html

Sign in to reply to this post

sandy170299

So, this won't work on a "normal" form field? It has to be set up with spry first?

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