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

email redirect and mod rewrite pages

Thread began 3/06/2019 10:27 am by Jamie | Last modified 3/06/2019 1:52 pm by Jamie | 89 views | 5 replies


email redirect and mod rewrite pages

Hi Ray

Have got a contact form set up which redirects to itself on both validation fail and success...this is fine on a static page but on a dynamic mod rewritten page, it doesnt redirect to the mod rewritten value but the actual filename itself.

If I echo SERVER_URI to the page it shows the mod rewritten value but the redirect doesnt.

the validation is

if (isset($_POST["ContactForm"]) || isset($_POST["ContactForm_x"])) {
$WAFV_Redirect = "".$_SERVER['REQUEST_URI'] ."#validfail";
$_SESSION['WAVT_contactform_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Name"])?$_POST["Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Telephone"])?$_POST["Telephone"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEM((isset($_POST["Email_Address"])?$_POST["Email_Address"]:"") . "",true,3);
$WAFV_Errors .= WAValidateRX(((isset($_POST["emailx"]))?$_POST["emailx"]:"") . "","/^$/i",false,4);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Area_of_Interest"]))?$_POST["Area_of_Interest"]:"") . "",false,5);

if ($WAFV_Errors != "") {

and the email side of things is

if (isset($_POST["ContactForm"]) || isset($_POST["ContactForm_x"])) { //WA Universal Email
$Email = new WA_Email("waue_sayhello_1");
$Email->Redirect = "".$_SERVER['REQUEST_URI'] ."?sent=1&#success";
$Email->From = "College Chambers <>";
$Email->Importance = "1";
$Email->BurstSize = "200";
$Email->BurstTime = "1";
$Email->WaitTime = "1";
$Email->BodyFile = "webassist/email/templates/Blank.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "Website Enquiry";

Have put a link to a mod rewritten page in the PM and if you scroll down you will see the form on the page



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





Ease of use


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