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

Re: system()

2000-06-02 Thread Erich L. Markert
Hmm... Skip the use of backticks... Bad things can be done. Check out: http://www.w3.org/Security/Faq/wwwsf5.html#Q44 on how to properly interact with system commands. Also, double and triple check user inputs also before passing them to ANY system command. Wim Kerkhoff wrote: > > You would d

RE: system()

2000-06-02 Thread Wim Kerkhoff
You would do it just like you do in normal perl. [- open (DIG, "dig domain.com | "); $foo = ; close (DIG); -] dig returned: [+ $foo +] alternatively, you can try: dig returned: [+ `/usr/local/bin/dig domain.com` +] On 02-Jun-2000 Embperl wrote: > just wanna know how

Variable declaration / scope

2000-06-02 Thread Martin A. Langhoff
hi list, I've been developing with Embperl for a few months now, and I've already RTFM a few times, but still some issues remain obscure to me. So here it is: Why can't I declare a lexical variable inside a [- -] block? [- my $foo -] will make Embperl cry loud if $foo was not declared as a gl

system()

2000-06-02 Thread Embperl
just wanna know how you can include system("dig domain.com"); in embperl and be able to put the result in a variable. tnx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]