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

form action bypassing page I want

Thread began 12/17/2019 10:44 am by JBWebWorks | Last modified 12/17/2019 6:39 pm by JBWebWorks | 91 views | 4 replies


form action bypassing page I want

I have product pages and at the bottom of each bottom page, There is a submit button with action to go to a quote request page. This is the action:
<form action="quote_form.php?pdf_ID=60" method="post" id="form1">
<input name="submit1" type="image" id="submitimg" src="images/quote.jpg" alt="Request Quote" />
On the quote_form.php page I have a form and a recordset with a GET variable to receive the ?pdf_ID=60 and the recordset populates a menu list from the pdf_ID.
The form should send an email with the person's info and the product that they want a quote. The email redirect to ?success=true which would show a message on the page that the email has been sent.
I recently upgraded this page to the most recent webassist email version and now when the form action button on the product page is pressed it bypasses the quote form page and goes directly to the ?success=true and no email is sent?
Code from the quote_form.php

<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once('Connections/connsqli.php'); ?>
if (($_SERVER["REQUEST_METHOD"] === "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) {
$WAFV_Redirect = "";
$_SESSION['WAVT_quoteform_591_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["name1"]))?$_POST["name1"]:"") . "",false,1);
$WAFV_Errors .= WAValidateEM(((isset($_POST["email1"]))?$_POST["email1"]:"") . "",true,2);
$WAFV_Errors .= WAValidatePN(((isset($_POST["phone1"]))?$_POST["phone1"]:"") . "",true,false,true,3);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["company1"]))?$_POST["company1"]:"") . "",false,4);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["quote_model"]))?$_POST["quote_model"]:"") . "",false,5);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["message1"]))?$_POST["message1"]:"") . "",false,6);
$WAFV_Errors .= WAValidateLE(strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,7);

if ($WAFV_Errors != "") {
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$rs_kaeser = new WA_MySQLi_RS("rs_kaeser",$connsqli,0);
$rs_kaeser->setQuery("SELECT * FROM kaeser_models WHERE pdf_ID = ?");
$rs_kaeser->bindParam("i", "".$_GET['pdf_ID'] ."", "-1"); //var1
<?php require_once("webassist/email/WA_Email.php"); ?>
if (isset($_POST["submit1"]) || isset($_POST["submit1_x"])) { //WA Universal Email
$Email = new WA_Email("quote_form_2");
$Email->Redirect = "?success=true";
$Email->From = "".((isset($_POST["name1"]))?$_POST["name1"]:"") ." <".((isset($_POST["email1"]))?$_POST["email1"]:"") ."";
$Email->BodyFile = "webassist/email/waue_quote_form_1_body.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 = "Quote Request from the website";

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