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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help with modifications

Thread began 3/02/2009 3:19 pm by archie175807 | Last modified 3/02/2009 6:45 pm by archie175807 | 2103 views | 4 replies |

archie175807

Help with modifications

Hello,

I need help with making a couple of modifications to the Contact Form Sol. Pack.

1. I need to pass the values of Contact_Name and Email_address to thankyou.php. Then I need to personalize the Thank You page with the visitor's name and the email address. How can I do this?

2. I need to add another field in the form. I know how to do that part. This will be a phone number field which won't be a required field but when someone does fill it out, I need to validate it to the correct format i.e. (555) 555-5555. How can I do this?

I'm new to PHP so would appreciate someone showing me the steps with the correct code I need to insert.

Thanks for your help.

Sign in to reply to this post

Ray BorduinWebAssist

1) Store the values as session variables. This is the easiest way to have them available on latter pages.

2) Do you have Dreamweaver CS3 or higher? Do you have validation toolkit?

With CS3 you can use spry validations to easily add phone number validation. If you don't have that it is also easy to add with validation toolkit. If you don't have either, you would need to identify a script you want to use to do the validation.

Sign in to reply to this post

archie175807

Hi Ray,

Thanks a lot for your help.

I can follow the instructions for storing a Session Variable in Dreamweaver but I'm not sure if the syntax of PHP is different from ASP or .Net. DW's help document doesn't seem to say anything about PHP. Could you help please?

I'm using DW CS3 but don't have WA's Validation kit. I'm somewhat familiar with Spry validation but will that cause a problem with IE 6?

Sorry if I'm asking too many questions.

Sign in to reply to this post

Ray BorduinWebAssist

I believe spry should work on IE6. IE6 has good javascript support, just not very good css support.

Session variables are similar in php. It will look something like:

<?php
session_start();
$_SESSION['sessionvariablename'] = $_POST['formvariablename'];
?>

Sign in to reply to this post

archie175807

Thanks a lot Ray. Appreciate your quick reply and help.

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