Re: cleaning up as application ends

2007-05-13 Thread Mary Anderson
, 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 'CSV'){ my $made_and_stuffed = make_and_stuff_query($pageName); if ($made_and_stuffed == 1){ my $pathName

cleaning up as application ends

2007-05-12 Thread Mary Anderson
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

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

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.perl.org/ http://learn.perl.org

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 'New Search')){ print submit(-name='go', -label

Hyperlink return

2006-07-19 Thread Mary Anderson
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.

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

2006-04-27 Thread Mary Anderson
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
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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http

Pointers on security sought for CGI

2006-03-15 Thread Mary Anderson
, 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, e-mail

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=myloginpassword=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
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://learn.perl.org/ http://learn.perl.org

Performance Degradation of ActivePerl CGI script under IIS

2006-03-07 Thread Mary Anderson
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 commands, e-mail

Passing Perl parameters in a cgi-script

2006-02-20 Thread Mary Anderson
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

Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Mary Anderson
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
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.org/ http://learn.perl.org/first

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