close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How? Multiple Forms on one php page...

Thread began 11/09/2009 10:27 pm by philip229496 | Last modified 11/10/2009 2:16 pm by Dani Chankhour | 4121 views | 3 replies |

philip229496

How? Multiple Forms on one php page...

Hi Guys,

I have a new site for a client using your CFS Pack. I have a forms.php page for them that uses TABBED divs to provide 3 different forms for visitors to use - one for general contact, one for Contact Lens orders and one to book appointment requests... At least that is what they will provide once I can get the 3 "standard" contact forms working together on one physical page...

I have made 3 lots of the header code with altered field names, altered the corresponding field names in each form and altered the var widget generators to match after each form section in each div...

The site is forms.php if you'd be so kind as to have a look.

I have not changed the

I have also modified the WAUE_Contact_1.php with the code...

case "Email_address":
$MailFrom = "".((isset($_POST["Email_address"]))?$_POST["Email_address"]:"") ."";
break;
case "Email_address_Lens":
$MailFrom = "".((isset($_POST["Email_address_Lens"]))?$_POST["Email_address_Lens"]:"") ."";
break;
case "Email_address_App":
$MailFrom = "".((isset($_POST["Email_address_App"]))?$_POST["Email_address_App"]:"") ."";
break;
to try and get the correct email value for the corresponding div form so that the mail is processed using the selected form's information...

The forms.php page shows all the error state spans at the outset so something is not validating server side before a form field is even selected to be filled in.

Any help would be greatly appreciated!!

I thought you'd like a nice curly question to sink your teeth into :8^)

Thanks in advance,

Philip

Sign in to reply to this post

Dani Chankhour

It looks like you might not have updated the Spry validation on the forms.

You will also need to modify the spry validation, by giving each new form a new name for the spry element, make sure to also update the spry element name at the bottom of the page.

Sign in to reply to this post

philip229496

Please check my live page

Hi,

Thanks for the thoughts, but can you have a look at the code on the actual live page please? I have unique labels and variables for each form so the spry validation should be applying to each form independently... I do have the spry var code at the bottom of EACH div (after the labels are declared) rather than at the bottom of the entire page... could that cause a problem?

I also have not altered your "1" "2" "3" "4" "5" "6" "7" parameters for each form.... What are they for? Are they merely pointers to the form fields location for cursor placement on return of error? If so are they happy to be declared for each individual form on the one page or does your code simply count through the total number of fields on the PAGE rather than the FORM?

Any insight you can provide in solving this will be appreciated.

Thanks.

Philip

Sign in to reply to this post

Dani Chankhour

I have opened a support ticket to better assist you. Please respond to your ticket at:

supporthistory.php

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