What where the errors?
Where you opening the page in Dreamweaver or in a web browser?
With the contact form solution pack, you will only need to edit the WA_Globals.php file, then upload everything to your web server.
I wish that were the case.
Without opening the contactus.php file in DW8, I supplied the variables for the Globals, put the files to the testing server and got a form that looks like it could work, if only the CAPTCHA image had shown up, so that the user would know what characters to type in.
So, that's error number 1,
Upon opening the contactus.php file, DW flags all of the Validation showif fields and when I double click on those to repair them, I get the message "Please select a form with WA Server Validation Applied."
That's error #2.
When I double click on WA_Server Validations, it loads up and makes the following changes to what was supposed to have been working code.
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
Gets changed to :
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "";
$_SESSION['WAVT_contactus_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
which makes things look like a session variable got renamed to reflect the file name.
Perhaps the original file was just contact.php
So at this point, I will strip all the validation out and rebuild the form.
However, I really need WA to suggest a remedy for why the CAPTCHA code is not showing up.
Also, could you explain the logic for the testing that occurs on the security question.
I may settle for just that, if I can't get CAPTCHA to work.
The validation code reads
((isset($_POST["Security_question"]))?strtolower($_POST["Security_question"]):"")
Looks for a like entry on
((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"")
Which gets set by a call to "WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"
The mystifying code in the form appears to be a client side check with
<span id="sprytextfield4">
<input name="Security_question" type="text" class="inputValue" id="Security_question" onblur="if (document.getElementById('securityServerError')) document.getElementById('securityServerError').style.display='none'" maxlength="40" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
Why is that code necessary? It looks like the session var has already been set and that the validation routine would work without the client side check.
Thanks.