Re: cleaning up as application ends

2007-05-13 Thread Mary Anderson
session closes. Is it possible to do this in cgi? (I am beginning to think not.) mary On 05/12/2007 05:37 PM, Mary Anderson wrote: > > I would like to perform some clean up at various points in my > application. > > Here is one of them. > > > > if ($pageName eq

cleaning up as application ends

2007-05-12 Thread Mary Anderson
tried, really does not work for this! Thanks, Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

.pdf files in a perl cgi application?

2007-04-23 Thread Mary Anderson
Hi all, I have successfully put .gif, .jpg , etc. images into my application. A user has just sent me some .pdf files, which must be read with Acrobat Reader, I assume. How would I work these into my application? Thanks Mary -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

END ing in a cgi script

2007-02-16 Thread Mary Anderson
Hi all, My perl-cgi application creates some temporary files and a temporary table which I would like to clean up as I exit the program. I tried writing a perl END block, but found that did not work. It appeared that to the cgi interpreter END{} had no special meaning and the code inside

read-only textfields?

2006-09-11 Thread Mary Anderson
I want users to be able to edit entries that have been stored in a database. The user types in an ID. A form appears with an ID textfield containing that ID and the other info from the database. I would like to have that ID appear in a read only textfield so that the user could not change i

figuring out if a number/character string is null in Perl

2006-08-30 Thread Mary Anderson
Hi All, I know this isn't strictly a cgi problem, but it is arising in a cgi application. I have a loop which reads certain fields, hashed on names. Some of my fields hold character strings, some hold numbers. Sometimes the number field is a blank. I need a test on the field value $fieldVa

perplexing popup problem -- CGI .pm bug?

2006-08-29 Thread Mary Anderson
-columns => $fieldColumns [$fieldCount], -override=>1))); } } $row = TR(@tdArgs); push @rows, $row; } print table (@rows); Thanks Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

redirect doesn't

2006-08-07 Thread Mary Anderson
=>'./'); Here is the result -- nothing happens but a statement is printed out -- Status: 302 Moved Location: ./ How should I be doing this? Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.

submit fails for no apparent reason

2006-07-20 Thread Mary Anderson
, Mary Anderson $pageName = param('go'); print "debug pageName = |$pageName|", hr; if ($pageName eq 'Table'){ print "pageNAme eq Table", hr; get_and_display_data($pageName); } if (($pageName eq 'INIT') or ($pageName eq &#x

Hyperlink return

2006-07-19 Thread Mary Anderson
{-location = mynewlocation}) and just get a message with a code and the information that the url is relocating. Thanks, Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

still have questions about hidden fields

2006-05-02 Thread Mary Anderson
Hi all, Many thanks to all who wrote about the static variable. I now know a lot more about cgi than I knew a few days ago! In the interest of keeping my code simple, I would like to take user input from a textfield and remember it to use it in database calls on successive pages. L. Stein

How to do a static variable that persists from page to page

2006-04-27 Thread Mary Anderson
es Value = 0 Value = } How should I be doing this? mary anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

making text fields persist across pages

2006-04-20 Thread Mary Anderson
has an example where there is no problem with passing the values of the fields around from page to page. Insight into the inner workings of cgi would be appreciated. I am into it deeply enough that I find it doing some odd things from time to time. Thanks in advance, mary anderson -- To unsubscr

Pointers on security sought for CGI

2006-03-15 Thread Mary Anderson
e doing, besides not running on Windows and IIS, to make my application more secure? I am careful to timestamp every row in every table in case some malicious nonsense is done and I have to clean up the mess. Thanks Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

newbie needs help on hidden and CGI parameters

2006-03-09 Thread Mary Anderson
Hi all, I have a login screen login.pl which calls another application sampleEntry.pl. The login and password are passed to a multipage Sample Entry program as CGI parameters sampleEntry.pl?login=mylogin&password=mypassword. These two parameters are used in one of the pages to login to

newbie question about print header

2006-03-08 Thread Mary Anderson
-nph->1 its pretty confusing. I am not putting the straight CGI into my file and these guys are giving me bits and pieces of the two ways to do it. Thanks Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lea

Performance Degradation of ActivePerl CGI script under IIS

2006-03-07 Thread Mary Anderson
ng on -- I don't think it is the time used to interpret the code because the first few records are processed in a reasonable amount of time. I would try using mod_perl, but that is an Apache piece of software. Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Passing Perl parameters in a cgi-script

2006-02-20 Thread Mary Anderson
d would appreciate hearing from someone who knows more about this! Thanks. Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

How to use Perl function system in a Windows environment?

2006-01-31 Thread Mary Anderson
OK, this isn't strictly a CGI question, but I would like to do a couple of things from my perl/CGI script One is to run an EXCEL macro on an EXCEL spreadsheet. Another is to send mail to a user automatically from my web application. I know how to do this in UNIX -- how do I do it in WIN

Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Mary Anderson
in UNIX, the error message would be sensible and useful! The same piece of code works ok in a .pl script without CGI. Any help is appreciated! Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

My CGI has suddenly soured.

2006-01-10 Thread Mary Anderson
e time. I double checked everything, and downloaded scripts from Stein's website. The problems persist. Any help or similar experiences would be appreciated. Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.o

Getting started on standalone Windows machine

2005-10-14 Thread Mary Anderson
Hi all, I have perl cgi installed successfully on my windows machine. I would like to write a perl cgi program and display it in the browser on my own Windows XP machine. To this end, I followed instructions in L. Stein's book and created a registry ScriptMap called .pl of type REG_SZ with v