View Full Version : PHP form validation generates blank page
mark284265
10-05-2010, 06:21 AM
I have two pages, pledge.php & pledgeConfirm.php. My form on pledge.php posts to pledgeConfirm.php. I've binded the form data and added the validations to pledgeConfirm.php. Validation trigger is 'any form post' and the failed redirect is set to pledge.php. When I submit the form it goes to pledgeConfirm.php but produces a blank page with no errors. I've attached the two files in question and renamed them with a .txt extension.
Jason Byrnes
10-05-2010, 08:01 AM
change the first 2 lines:
<?php virtual("/WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php virtual("/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
to:
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
in your Dreamweaver site settings, on the local info tab there is a setting for "Create Links Relative To".
If this option is set to "Site" Dreamweaver will use the virtual function for included files. The virtual function is not supported on all platforms. Set this option to "Document" instead. this will cause Dreamweaver to use the require_once function which is supported on all platforms.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.