RE: Having problems passing form variables

2000-06-04 Thread Gerald Richter
> > Occasionally I find I need to copy hash values to temp variables to get > things to work right. > [..] > > Otherwise I get some cryptic hash reference instead of the value. I > remember stumbling across an explanation of this somewhere. You must not insert spaces between a variable inside a

Re: Having problems passing form variables

2000-06-03 Thread Dudley Irish
From: "Henrickson, Diana" <[EMAIL PROTECTED]> I realize this may be a silly question but I cannot get this to work. I'm trying to pass form variables into a database using DBD::DB2.. $sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME) VALUES($fdat{cgifirst})") or die "Canno

Re: Having problems passing form variables

2000-06-02 Thread Bryan Thale
"Henrickson, Diana" wrote: > I realize this may be a silly question but I cannot get this to work. I'm > trying to pass form variables into a database using DBD::DB2.. > > $sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME) > VALUES($fdat{cgifirst})") or die "Cannot INSERT to '$table'" ; >

Re: Having problems passing form variables

2000-06-02 Thread Terrence Brannon
It would be nice to see your embperl.log file (probably automatically written to /tmp/embperl.log) Also, what error messages are you getting? Finally, use Data::Dumper and print out the form data that you think exists like this: [+ use Data::Dumper; Data::Dumper->Dump([\%fdat],['fdat']); +] t

Having problems passing form variables

2000-06-02 Thread Henrickson, Diana
I realize this may be a silly question but I cannot get this to work. I'm trying to pass form variables into a database using DBD::DB2.. $sth = $dbh -> prepare ("INSERT INTO USERDATA(FIRST_NAME) VALUES($fdat{cgifirst})") or die "Cannot INSERT to '$table'" ; Is there a different way I need to r