[FX.php List] What can possibly be wrong?
Bob Patin
bob at patin.com
Thu Jul 27 09:59:09 MDT 2006
I'm trying to do the simplest of forms, and getting nada...
What am I missing here??
The database is online, XML is enabled for the username, all the
fields DO exist. The problem is, I'm not even getting an error code.
When I comment out pieces of the code it still doesn't process...
My FX folder does exist, is being used for a cart on this site; this
is such a simple little add-record script...
<?php
include_once('FX/FX.php');
include_once('FX/server_data.php');
$address1=$_POST['address1'];
$address2=$_POST['address2'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$country=$_POST['country'];
$daytime_phone=$_POST['daytime_phone'];
$email=$_POST['email'];
$firstname=$_POST['firstname'];
$home_or_work=$_POST['home_or_work'];
$how_found=$_POST['how_found'];
$interest=$_POST['interest'];
$lastname=$_POST['lastname'];
$who_am_i=$_POST['who_am_i'];
$who_am_i_other=$_POST['who_am_i_other'];
$create=new FX($serverIP,$webCompanionPort);
$create->SetDBData('dbname.fp7','Guestbook'); <- edited out the real
names
$create->SetDBPassword('password','username'); <- edited out the real
names
$create->AddDBParam('address1',$address1);
$create->AddDBParam('address2',$address2);
$create->AddDBParam('city',$city);
$create->AddDBParam('state',$state);
$create->AddDBParam('zip',$zip);
$create->AddDBParam('country',$country);
$create->AddDBParam('daytime_phone',$daytime_phone);
$create->AddDBParam('email',$email);
$create->AddDBParam('firstname',$firstname);
$create->AddDBParam('home_or_work',$home_or_work);
$create->AddDBParam('how_found',$how_found);
$create->AddDBParam('interest',$interest);
$create->AddDBParam('lastname',$lastname);
$create->AddDBParam('who_am_i',$who_am_i);
$create->AddDBParam('who_am_i_other',$who_am_i_other);
$createResult=$create->FMNew();
echo $createResult['errorCode'];
?>
Thanks,
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: tech at longtermsolutions.com
ICQ: 159333060
More information about the FX.php_List
mailing list