I have a dhtmlxform that uses a form connector to populate a form with data. On submit I call dp.sendData(); which goes to a php page that processes the update request. Here is my update.php page:
[code]<?php
require_once("…/config/mysqlInc.php");
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
mysql_select_db($mysql_db);
require("../js/dhtmlxSuite2.6/dhtmlxForm/codebase/connector/form_connector.php");
function myUpdate($action){
$new_value = rand(0,100);
$date = date("Y-m-d");
$action->set_value("insertDate",$date);
$action->set_value("insertBy","Peter Rozental");
}
$form = new FormConnector($res);
$form->event->attach("beforeUpdate",myUpdate);
$form->enable_log("log.txt");
$form->render_table("clients","clientID","firstName,lastName,address,thumbSmall,thumbLarge,phoneNumber,eMail,contractSigned,releaseSigned,insertDate,insertBy");
?>[/code]
The problem that I have is when using Chrome data that I update in my form does not always get saved, I checked the logs and the only time that an entry is made is when the save works successfully. When I put in “1234 Main Street” for the address field in Chrome the data in the database remains null. When I do this in IE 8 / IE 7 the data gets updated correctly.
Here is my form page:
[code]<?php
//Buffer larger content areas like the main page content
ob_start();
?>
First Name: | |
Last Name: | |
Address: | |
Phone Number: | |
Email: | |
Contract Signed: | |
Release Signed: | |
ImageMagick |
<?php
include "phmagick/phmagick.php";
$phMagick = new phMagick("images/clientThumbs/068.jpg","images/clientThumbs/destination.jpg");
$phMagick->setImageMagickPath("/usr/local/ImageMagick-latest/bin/");
$phMagick->debug=true;
$phMagick->resize(40,0);
echo '', print_r($phMagick->getLog()) , ''; ?> |
[/code]
Any help would be greatly appreciated, I’d love to get this to work reliably in Chrome as the javascript processing in IE is less than fast.