ftp to get a file from my cgi

2002-07-03 Thread Rob Roudebush
Hi, When my form processess it needs to ftp into a site to grab information - can I use a here document for that? Any quick example please. Thanks, Rob Todd Wade [EMAIL PROTECTED] wrote: wrote in message 008801c222a5$a7c3cb10$d381f6cc@david">news:008801c222a5$a7c3cb10$d381f6cc@david...

single quotes kill my scripts

2002-06-10 Thread Rob Roudebush
I have the following code - when someone enters a whatever ' whatever into one of my forms my script dies because of the single quote. Aggg... of course the first time I come across it is when my boss is testing out the script. $sth = $dbh-do( insert into maintenance (owner, email,

Capturing carriage return signal to cgi form

2002-06-05 Thread Rob Roudebush
Does anyone know how to capture the carriage return to prevent a user from accidentally submitting the form by pressing 'return' before they actually finish completing the form? -Rob - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup

why do I get the following warning for taint

2002-05-29 Thread Rob Roudebush
When I run perl -c myscript.cgi to test the syntax or perl -w ..., it produces this: Too late for -T option at maintenance.cgi line 1 (my line 1 is just the shebang line with the -T option). Does this mean that something is wrong? -Rob Carl Franks [EMAIL PROTECTED] wrote: Hi, This is how I

Re: Using strict with DBI

2002-05-15 Thread Rob Roudebush
by specifically declaring a variable as a global variable (using vars?). foreach $var (@email){ $var =~ /(^.*)\\@.*/; @names = (@names, $1 );} @names = map (uc($_), @names); Todd Wade [EMAIL PROTECTED] wrote: Rob Roudebush wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'v

Password code!!

2002-04-11 Thread Rob Roudebush
Please help - I need to password protect my form by COB today. I initially had just a password field at the bottom to authenticate prior to clicking submit. Is there anything better - say something that launches when a link is selected to the form?? Nate Brunson [EMAIL PROTECTED] wrote:

Match and remove an element in an array

2002-03-15 Thread Rob Roudebush
Okay my script takes names from a fom and puts them into an array - then later I need to match a $variable (one of the names) against that array and take that specific element out of the array. I figure there is probably an easy function to do this? array=(john, lucy, mike); $name=john I

Re: Secure Logoff from Session CGI

2002-03-15 Thread Rob Roudebush
I'm not sure, but how do you set a cookie and have it expire in ten minutes? -Rob --- Sean Abrahams [EMAIL PROTECTED] wrote: I have a small series of web pages that talks to a database and uses forms to input/alter data. In order to get to these web pages a user has to authenticate. If

Re: changing the defualt nobody@somecomputer.com (mailx)

2002-03-10 Thread Rob Roudebush
] wrote: On Fri, Mar 08, 2002 at 06:05:07PM -0800, Rob Roudebush wrote: My CGI script shoots out an automated e-mail using mailx. Is there any way to change the nobody? -Rob Hi Rob, Yes, you can change the From: header. Are you actually constructing an email and passing it to mailx? You

Expanding param(someinput) in here document

2002-03-07 Thread Rob Roudebush
I'm trying to avoid assigning each param(somekey) to a variable in order to expand it in my here document. I can refer to it as a hash element without any variable assignment using - print param(somekey); - but I don't want to have to use print statements instead of a here document to display

CGI Design problem

2002-03-06 Thread Rob Roudebush
Okay, I created a HTML Form that calls a CGI script. After the form is submitted it sends out e-mails with a link inside to certain managers. They follow the link which is a separate HTML page that calls a separate CGI script. Question: I need to keep track of the managers who follow the link

Regular expression help w/timestamp

2002-03-03 Thread Rob Roudebush
Has anyone ever turned the mysql timestamp format 20020303223726 into something more readable like - 03/03/2002 22:37:26? I am also trying to do this from an array (the timestamp is in a array) I just figured somebody has probably done this already Thanks, Rob

Re: Escaping special characters for regular expressions

2002-02-28 Thread Rob Roudebush
Wouldn't single quotes do the trick? Curtis Poe [EMAIL PROTECTED] wrote: --- W P wrote: i don't want to just escape those characters. they were merely examples. i was hoping maybe there was some built-in way to escape ALL the characters that mean anything to regular expressions. Well,

Uploading a file?

2002-02-25 Thread Rob Roudebush
Does anyone know how to upload a file to your site? -Rob - Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games