Form breaks when adding Insert Record
This file, IBCRF-InformationRequest.php , connects and sends an email. It has Server Behaviors; WA Server Behaviors, Universal Email, Dynamic Text Fields, Validation Show If.
When I add Insert Record (see IBCRF-InformationRequest2.php) it gives the dreaded warning:
mysql_pconnect() [function.mysql-pconnect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /data/9/2/77/103/2729755/user/2999754/htdocs/Connections/ibcrf.php on line 25
Fatal error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /data/9/2/77/103/2729755/user/2999754/htdocs/Connections/ibcrf.php on line 25.
The Connections file, icbrf.php , tests "Connection was made successfully" in the Dynamic MySQL Connection. I have been very careful to set this file up the same way as other sites I developed that connect and send info to the databases. Attached are screen shots of the MySQL remote database Control Panel and PHP Admin that I get Connection settings from.
Both files throw the error on the local testing server:
array(1) {
["captcha_Security_Code_1"]=>
string(5) "znkPx"
}
On IBCRF-InformationRequest2.php I have tried the following additional lines of code in the Server Validations:
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",((isset($_POST["Security_Code_1"]))?strtolower($_POST["Security_Code_1"]):"") . "",true,1);
$WAFV_Errors .= WAValidateLE($_SESSION['captcha_Security_Code_1'] . "",((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"") . "",true,1);
Thank you for taking a look and giving me a direction to go in.