close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Not Appending URL with Success Message

Thread began 2/22/2012 6:36 pm by Martin | Last modified 2/22/2012 7:17 pm by Martin | 658 views | 4 replies |

Martin

Not Appending URL with Success Message

Hi there,

Previously I have been shown how to get a successful form submission to submit back to itself and display a success message.

This was done by adding

index.php?success=1 as the success URL.

And inserting the code

<?php if(isset($_GET['success']) && $_GET['success'] == "1") { ?>
<h4 class="center" style="margin-top: 20px; margin-bottom: 20px; background: #B8F5B1; color: #000; padding: 15px;"><span style="font-weight: bold;"><em>Your Contact Form Submission was Successful</em></span><em>!</em></h4>
<?php } ?>

As an example.

I have a URL though that is not adding the appended success=1 message.

contact is the URL

When the URL is returned it goes from contact/ to the following

index.php

But it is not appending the ?success=1 message to get the success message to fire.

I am receiving the generated emails with no problem. But my client is not getting the feedback that it has been successfully sent.

Any ideas?

Thanks,
Martin

Sign in to reply to this post

Jason ByrnesWebAssist

i'll need to see a copy of the page please.

Sign in to reply to this post

Martin

Sorry, I should have done that in the first place. =)

Attached Files
index.zip
Sign in to reply to this post

Jason ByrnesWebAssist

add the following code at line 1, i have a feeling an error is occuring that is causing the redirect to fail:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>





i'm betting that this is going to show the Headers already sent error being caused by the use of the virtual function for includes:

<?php virtual('/Connections/PowerCMSConnection.php'); ?>
<?php virtual("/WA_CMS/WA_CMS.php"); ?>


see this page for details:
showthread.php?t=19285

especially the section where i talk about using the virtual function. and how to stop dreamweaver form doing that.

Sign in to reply to this post

Martin

Hi Jason,

Changing the CMS from virtual to require_once worked! So you were right!

Thank you so much. I will remember that one in future!

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