Fatal error: Call to undefined function virtual()
When i uploaded my form to the server, i got this error message:
Fatal error: Call to undefined function virtual()
When i uploaded my form to the server, i got this error message:
Fatal error: Call to undefined function virtual()
In the Dreamweaver site definition, you have set the "Create links relative to" option to Site, this causes Dreamweaver to use the virtual() synatx. the virtual function can only be used on a small handful of servers.
Change that to Document so Dreamweaver will use the correct require_once syntax.
I have the ContactForm_GMC but when i customize the form using CSS form builder the email does not send to the address specified in the WA Globals? It brings up the thankyou.php but the message does not send?
J Richardson
send a copy of your page please.
I'm sorry, I need you to send a copy of the contactus.php page so I can examine the code.
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php require_once('WA_Globals/WA_Globals.php');?>
<?php require_once("WA_Universal_Email/mail_PHP.php"); ?>
<?php require_once("WA_Universal_Email/MailFormatting_PHP.php"); ?>
<?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))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("WA_Universal_Email/WAUE_contact_1.php");
//Send Mail All Entries
if ("index.php"!="") {
header("Location: thankyou.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Contact Us</title>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
<style type="text/css">
.textfieldServerError {
display:block;
margin:0px;
color:#CC3333;
border: 1px solid #CC3333;
}
#container {
width: 824px;
margin-right: auto;
margin-left: auto;
}
#container #header {
padding: 20px 0px 5px 40px;
}
#container #header a, a:visited {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size: 16px;
font-weight: bold;
color: #B6B6B6;
text-decoration: none;
letter-spacing: 1px;
}
#container #header a:hover {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
font-size: 16px;
font-weight: bold;
color: #B6B6B6;
text-decoration: underline;
letter-spacing: 1px;
}
#footer {
color: #666;
font-size: 12px;
line-height: 16px;
padding: 5px;
text-align: center;
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
<script src="CSSFormBuilder/WA_ServerValidation.js" type="text/javascript"></script>
<link href="CSSFormBuilder/FD_Cool_Default.css" rel="stylesheet" type="text/css" />
</head>
Your form action is set to post to the thank you page:
<form class="Cool_Default" id="SimpleContact_Cool_Default" name="SimpleContact_Cool_Default" method="post" action="thankyou.php">
leave that blank so universal email has an opertunity to send the email:
<form class="Cool_Default" id="SimpleContact_Cool_Default" name="SimpleContact_Cool_Default" method="post" action="">
Is these extensions one BIG con? I am just please i have not wasted more cash!
Still does not work. Leave what blank? The form automatically fills it in?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.