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

Not Redirecting Properly

Thread began 9/08/2010 6:29 pm by Martin | Last modified 9/09/2010 12:16 pm by Jason Byrnes | 524 views | 3 replies |

Martin

Not Redirecting Properly

Greetings,

I have a contact form (created with CSS Form) that I am trying to either forward to a thank you page or to itself and have a "success" message appear. The form works, it validates.

The page is located at: contact_test.php

However, the actual page when tested does not add the ?success to the url parameter. As such the Success message does not display. Also if I change the redirect from a success message to a thank_you.php redirect page, it does not redirect their either.

BUT it does generate e-mails successfully and it does pass all the parameters from the contact form fields!

Any ideas??

Thanks,
Martin

BTW, I have attached the two files in the zip attachment.

Attached Files
contact-test.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change the first to lines:

php:
<?php virtual("/WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>

<?php virtual
("/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>




to use the require_once function instead of virtual:

php:
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>

<?php 
require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>



To prevent Dreamweaver from using the virtual() function for including php files in the future, you should modify your site definition. Change the "Create Links relative to:" option on the local info tab to "Document" instead of using "Site".

Sign in to reply to this post

Martin

Hi Jason,

Thanks for that info. I have already tried it and it worked perfectly!

I would never have thought to look at the document root settings to determine this problem.

Thanks again!

Martin

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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