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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Apply Server Validations to 2 Forms on 1 Page

Thread began 2/20/2011 7:44 pm by dlovas275157 | Last modified 2/22/2011 11:52 am by Jason Byrnes | 1098 views | 1 replies |

dlovas275157

Apply Server Validations to 2 Forms on 1 Page

I am trying to apply server validations on 2 forms that are both located on the same page.

Form 1 (which allows the site user to email the website owner about the current page's listing) has the following validations:
a. Name - Required
b. Email - Must be an email address

Form 2 (which allows a site user to email the current page's listing to their friends) has the following validations:
a. Email - Must be an email address
b. Friend's Email - Must be an email address

Problem - The 1st form appears to validate and prompt errors when it should. However the 2nd form will not submit or prompt errors as it is setup to do using validation showif behaviors.

Attached is my code. Any help is appreciated.

(I would prefer to get this working using server validations, but if this is the wrong approach please advise).

Thanks.

(Using CS5 and latest CSS FB Extension.)

Attached Files
dPOST.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 682 - 686:

php:
<?php

if (ValidatedField('d_609','d_609'))  {
  if ((
strpos((",".ValidatedField("d_609","d_609").","), "," "3" ",") !== false || "3" == ""))  {
    if (!(
false))  {
?>




to:

php:
<?php

if (ValidatedField('d_501','d_501'))  {
  if ((
strpos((",".ValidatedField("d_501","d_501").","), "," "3" ",") !== false || "3" == ""))  {
    if (!(
false))  {
?>






and 697 - 701:

php:
<?php

if (ValidatedField('d_609','d_609'))  {
  if ((
strpos((",".ValidatedField("d_609","d_609").","), "," "4" ",") !== false || "4" == ""))  {
    if (!(
false))  {
?>




to:

php:
<?php

if (ValidatedField('d_501','d_501'))  {
  if ((
strpos((",".ValidatedField("d_501","d_501").","), "," "4" ",") !== false || "4" == ""))  {
    if (!(
false))  {
?>
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...