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

Universal Email & CSS Form Builder - form won't redirect.

Thread began 3/17/2010 11:37 am by dan361748 | Last modified 4/26/2010 5:58 pm by Jimmy Wu | 1787 views | 17 replies |

dan361748

Universal Email & CSS Form Builder - form won't redirect.

Hi - I've setup a contact form from CSS form builder and applied the Universal Email behaviour. The form submits and the recipient receives an email. However the form will no redirect to the 'go to page'. It just reloads the original form again. Any help would be really appreciated.

Thanks

Sign in to reply to this post

Jimmy Wu

The action of the form should post back to the original page. The redirect should be on the Universal Email server behavior. Make sure that there is a page specified in the goto page in the Universal Email wizard.

Sign in to reply to this post

dan361748

Thanks

Thanks Jimmy. It is specified in the wizard and appears in the code.

I've attached a zip here.

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

dan361748

Double checked

I think I did everything right - the form is set to post to itself and I have specified the redirect in the UE behaviour. Any thoughts on why it won't redirect?

Thanks

Sign in to reply to this post

Jimmy Wu

It looks like the redirect and the page is in there. The code may not be going into the block of code for forwarding, so what you can do to test is to find this block of code:

php:
//Send Mail All Entries
  if ("contact-thankyou.php"!="")     {
    header("Location: contact-thankyou.php");
  }



and modify it to look like this:

php:
//Send Mail All Entries
  if ("contact-thankyou.php"!="")     {
    die("Forwarding block reached");
    header("Location: contact-thankyou.php");
  }



if the page just shows the text "Forwarding block reached" then it gets into that block of code, but its not forwarding correctly. If it does not, we'll have to look into why it isn't getting to the forwarding code.

Sign in to reply to this post

dan361748

Thanks - the code is inserted but when the form is submitted it returns to contact.php.

Sign in to reply to this post

dan361748

One more piece of info - when the page contact.php loads it is a blank screen.

Sign in to reply to this post

Jimmy Wu

when a page displays blank, it means a php error has occurred, but error reporting is turned of.


to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

dan361748

Thanks - after turning error reporting on I get the following errors:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php:3) in /WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3

Sign in to reply to this post

Jimmy Wu

Make sure there aren't any extraneous white spaces in your /WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php file between the php tags. For example, having an extra line between the closing and the opening php tags like this:
?>

<?php

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