RE: how to check that we are getting something from form?

2003-06-06 Thread ted . weston
unless (param('name')) {die "No content entered";} .ted -Original Message- From: Annie [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 5:46 PM To: [EMAIL PROTECTED] Subject: how to check that we are getting something from form? i want to know how i can check if my textfields are r

RE: regexing AND NOT

2003-06-06 Thread ted . weston
perlfaq6: (cut-n-paste to get the final "-" there) http://www.perldoc.com/perl5.8.0/pod/perlfaq6.html#How-do-I-match-a-pattern-that-is-supplied-by-the-user- How do I match a pattern that is supplied by the user? Well, if it's really a pattern, then just use chomp($pattern = ); if ($line

RE: built-in perl function?

2003-06-05 Thread ted . weston
perlfaq4: How do I convert between numeric representations? "Using unpack; $bin = unpack("B*", pack("N", 3735928559)); Using Bit::Vector: use Bit::Vector; $vec = Bit::Vector->new_Dec(32, -559038737); $bin = $vec->to_Bin(); " RT(F)M, .ted -Original Message- From: f

RE: require "config.txt"

2003-06-01 Thread ted . weston
How is the config file arranged? You'll have to read the file in and setup your own variables, I surmise. .ted -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: Saturday, May 31, 2003 5:15 PM To: CGI Subject: require "config.txt" How to call the variables from the config fil

RE: Javascript and Perl Problem

2003-05-31 Thread ted . weston
You have some code for us to view? .ted -Original Message- From: Peter Fleck [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: Javascript and Perl Problem I have some complex (at least to me) javascript on a perl-generated page that's not work

RE: newbie question - re: form validation ?JUNK MAIL?

2003-05-30 Thread ted . weston
#*** NON-TESTED CODE *** # RUN AT YOUR OWN RISK :) use Time::Local; if ($in{'timestartPM'}) { # make a radio button set where either AM or PM is selected $in{'timestarthour'}+=12; } if ($in{'timeendPM'}) { $in{'timeendhour'}+=12; } #you'll have to do some error-checking for some