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

url redirect not working with Framework Builder

Thread began 8/20/2010 8:09 am by gwh362692 | Last modified 8/20/2010 9:43 am by Ray Borduin | 611 views | 4 replies |

gwh362692

url redirect not working with Framework Builder

Hi everyone,

I'm using Framework Builder together with CSS Form Builder and Universal Email 4. I've inserted the form into a separate php page and then included it on a contact page using Framework Builder. I then ran Universal Email 4 to get it functioning.

In the Universal Email wizard I set the goto page field to:

contact.php?sent=true

And then on my contact page I have the following code:

<?php if(isset($_GET['sent']) && $_GET['sent'] == "true") { ?> <p id="confirm" style="background-color: #00274c; color: #fff; height: 30px; line-height: 30px; padding-left: 10px; margin-bottom: 15px;"> <strong>Thank you for your enquiry. We will be in contact as soon as possible. </strong></p><?php } ?>

The above code is located just above the include code as follows:

<?php echo((isset($WA_contact_form_1))?$WA_contact_form_1->Body:"") ?>

When I test the form, all the information gets emailed but instead of displaying the div, I get a page with the following on it:

"404 Not Found
The requested URL was not found on this server"

and the following is what's in the url:

contact.php?sent=true

It seems that it's looking for contact.php?sent=true in the plugins directory which is where the include is located, but the code is actually on my contact page because that's where I need the message to appear.

I'm not sure how to get around this and wondered if someone could provide some advice?

Thanks in advance.

Sign in to reply to this post

Ray BorduinWebAssist

See: showthread.php?t=15310

Sign in to reply to this post

gwh362692

Thanks for the reply &#8211; I've just read the post and have got it working.

Just one other thing: when the div is shown via the following code:

<?php if(isset($_GET['sent']) && $_GET['sent'] == "true") { ?> <p id="confirm" style="background-color: #00274c; color: #fff; height: 30px; line-height: 30px; padding-left: 10px; margin-bottom: 15px;"> <strong>Thank you for your enquiry. We will be in contact as soon as possible. </strong></p><?php } ?>

... is it possible to have the form disappear?

Sign in to reply to this post

gwh362692

It looks like I spoke too soon. It's actually not working afterall.

I changed the following 3 lines in the code:

$WAFV_Redirect = "" . $_SERVER["PHP_SELF"] . "?sent=true";

$GoToPage = "".(rel2abs("../contact.php",dirname(__FILE__))) ."";

<form class="sample" id="sample" name="sample" method="post" action="<?php echo($_SERVER["PHP_SELF"]); ?>">

When I submit the form I receive the information and contact.php reloads but the div doesn't show, ie.

<?php if(isset($_GET['sent']) && $_GET['sent'] == "true") { ?> <p id="confirm" style="background-color: #00274c; color: #fff; height: 30px; line-height: 30px; padding-left: 10px; margin-bottom: 15px;"> <strong>Thank you for your enquiry. We will be in contact as soon as possible. </strong></p><?php } ?>

Really appreciate any further advice.

Sign in to reply to this post

Ray BorduinWebAssist

I have opened a support incident so that we can investigate this issue with you directly.

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