save output as text file, move file to another location

2004-06-09 Thread Gregg O'Donnell
Greetings all! I have data that is output from a form. How do I take this data, save it as a .txt file, and place this .txt file in another location (a different folder, not cgi-bin) on my server? Also, each time a .txt file is created, it should "overwrite" the previous file ( I assume this is

CSV file data into HTML table

2004-03-22 Thread Gregg O'Donnell
Greetings! I have HTML pages with tables containing numerical data. I also have a CSV file with rows of this numerical data that correspond to each of the HTML pages. Each HTML table uses one unique row of data and another row used on multiple pages. Instead of coding the number data into each H

Re: REQUEST_METHOD

2004-03-17 Thread Gregg O'Donnell
Try this site for additional information http://httpd.apache.org/docs/howto/cgi.html#environmentvariables Mike Ni <[EMAIL PROTECTED]> wrote: Thanks for the resoponse, It was written by a person who left already. Now, I need to find out how his code work. Do you happen to know where I can find

ENV variables and custom 404 error page

2004-03-01 Thread Gregg O'Donnell
I have a custom 404 error page that uses that shows the URL of the page that couldn't be found using var="REDIRECT_URL". Is there a way to take this variable, such as "/folder/wrong.html", strip out everything except "folder", match "folder" and redirect (launch the web page) to "folder/index.ht

newline or CR with join function

2004-02-26 Thread Gregg O'Donnell
Greetings all, Instead of joining my scalars with ',' I'd like each to appear on a newline. Replacing ',' with '\n' doesn't work. Suggestions? Thanks! my $cfor_edu = join (',',$bs_alma,$bs,$ms_alma,$ms); - Do you Yahoo!? Get better spam protection with Yahoo! M

Re: * CSV to HTML * please send cgi-beginner listserv address

2004-02-06 Thread Gregg O'Donnell
Thanks to all who helped - please give me the beginners cgi listserv email Thanks, Gregg - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online

Re: * CSV to HTML * zero reads as empty space

2004-02-05 Thread Gregg O'Donnell
bug; my %record; my $entry; my $i = 1; # First index while ($line) { if ($line =~ s { ^\" ((?:[^\"]|\"\")*) \" (?:,|$)

RE: * CSV to HTML * zero reads as empty space

2004-02-05 Thread Gregg O'Donnell
ght need a little code if we're going to help. As far as I know there are no CSV-HTML gotchas that would do this, so it's probably your algorithm. Are you doing something like this? if($my_var){ print $my_var; } that would print nothing if the value was a zero, because zero evaluates to F

* CSV to HTML * zero reads as empty space

2004-02-05 Thread Gregg O'Donnell
I have a script that reads a CSV file into an HTML template. The template reads the CSV data accurately unless the field shows zero, in which case the HTML page displays a blank space. Any suggesstions? Thanks! - Do you Yahoo!? Yahoo! Finance: Get your refund fas

printing: landscape instead of portrait

2003-10-31 Thread Gregg O'Donnell
I'm using MIME::Lite to send a wide email, which is formatted as HTML (could be formatted as text if needed, or as an attachment). How do I control the printing to orient the email to an 11 X 8 1/2 (landscape/horizontal) style instead of 8 1/2 X 11 (portrait/vertical)?

Re: How to send email (perhaps via Exchange Server?)

2003-10-29 Thread Gregg O'Donnell
Check out MIME::Lite (easy to install and use). http://search.cpan.org/search?query=MIME%3A%3ALite&mode=all "Gazi, Nasser" <[EMAIL PROTECTED]> wrote: I am writing a Perl script for Solaris box. The script needs to send email. The company uses Microsoft Exchange Server, and the Solaris box Sendmai

easier way to list email addresses for multiple recipients

2003-10-17 Thread Gregg O'Donnell
I have a form that needs to send it's data to multiple recipients (35 in all); is there an easier way to do this? # Region office email addresss my @offices = ('[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'); my $email_all = @offices; Thanks -

email (HTML) pushed/pulled into web page

2003-10-17 Thread Gregg O'Donnell
e; however, I haven't been able to get a page to pull that CSV file for web page display. Any guidance or resources would be appreciated. Gregg O'Donnell Webmaster Virginia Department of Forestry Charlottesville, Virginia Phone: (434) 977-1375 ext. 3398

load apache & perl on a CD to run HTML documents?

2003-09-15 Thread Gregg O'Donnell
I have a web-based manual that includes calculators and other .cgi scripts. I need to make this manual available to some users who have no Internet access; that is, turn a web app into desktop app. Would appreciate any help or guidance to resources to do this. Thanks, Gregg ---

how do I "file lock" for a form?

2003-08-22 Thread Gregg O'Donnell
Hi. When a user hits "submit" many times after completeing a form, I get multiple (duplicate) entries in my spreadsheet. I've read that I can add a hidden field with a unique identifier to "lock the file" so this won't happen. I don't know how to do this - can anyone explain/direct me to a good

CHOMP and {$query->param( question...

2003-06-23 Thread Gregg O'Donnell
I have a Publication Order Form, with checkboxes beside each title. The list needs to be emailed to ONLY the department that carries the publication ordered (not all departments). I think I should I grab the form data, use CHOMP to get only "fire" from "fire-01" but then how do I get it into {

Re: Use of SSI

2003-03-13 Thread Gregg O'Donnell
Everything you asked about is answered here: http://www.webreference.com/programming/ssi/intro/index.html Gregg O'Donnell Webmaster Virginia Department of Forestry www.dof.state.va.us Ramón Chávez <[EMAIL PROTECTED]> wrote:I'm trying to use a Script for showing who's onlin

ifelsif/hash errors - question

2002-08-29 Thread Gregg O'Donnell
Hey - I'm receciving syntax and global package errors in lines 540-550 of this script, which is running on WinNT. One error I receive is for not defining my hash "%counties" which is, in fact, defined. So, I'm baffled and stuck. Any insight is greatly appreciated!! GreggDo You Yahoo!? Yahoo! Financ

RE: Hash, query->param help

2002-08-14 Thread Gregg O'Donnell
unty')}->{County} || ''; > And how do I wrap this so the user will select a county I'm not sure I understand this one. Can you explain what you mean? Rob -Original Message- From: Gregg O'Donnell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:4

Hash, query->param help

2002-08-14 Thread Gregg O'Donnell
I'm writing a script to send emails to different locations. Some will receive one email, others 3 or 4. Should each county have all the categories, even if some have an empty value, or only the categories for which they have a value. And how do I wrap this so the user will select a county my

Formatting date, time

2002-08-13 Thread Gregg O'Donnell
I'm looking for the simplest way to use the date and time in the format of MMDDYYHHmm (no spaces), which is used later in the program. Here's what I've come up with; comments or suggestions are appreciated. #Insert Date and Time my $month = $mon00 #Two digit month my $day = $mday00 #Two

DBD::CSV question

2002-08-09 Thread Gregg O'Donnell
Hey - I'm trying to put this together from studying the perldoc. Do I need to define "my $table =" and if so, to the csv file? Also, the number of scalars should equal the number of question marks? use DBI; my $dbh = DBI->connect(qq{DBI:CSV:csv_sep_char=\\;}); my $dbh->{'csv_tables'}->{'logge