Re: error info...

2001-07-19 Thread fliptop
bc wrote: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); you're not using strict. please do. } elseif ($name eq randal) { it should be elsif, not elseif. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: unix perl to win NT perl

2001-07-18 Thread fliptop
Sally wrote: -Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: 18 July 2001 10:13 To: perl Subject: unix perl to win NT perl I adapted a guestbook from Matt Wright to suit my needs, only it was coded to run on a unix server, and I need it to run on a windows NT

Re: Excel to html via CGI

2001-07-17 Thread fliptop
Deneb Pettersson (LMF) wrote: Deneb Pettersson (LMF) wrote: Do both these things handle graphs aswell, or do i have to use something else for that. Basically this is at the moment a planning with the spreadsheet::parseexcel module, it simply reads cell contents in a worksheet.

Re: e-mailing HTML form results

2001-07-17 Thread fliptop
Helen Dickey wrote: Is this correct? Should the following work? #!/usr/local/bin/perl -wT use Net::SMTP; $smpt = Net::SMPT-new('smtp.his.com'); $smpt-mail($ENV{USER}); $smtp-to('[EMAIL PROTECTED]); you need to use either ' or , but don't mix them. ie.- $smtp-to('[EMAIL

Re: Excel to html via CGI

2001-07-17 Thread fliptop
Deneb Pettersson (LMF) wrote: Could you maybe send an example of your code, showing how you get the data out, aswell as how you mark where to cut from the excel this code assumes you've already uploaded the .xls file to the server. for more information on all methods, try perldoc

Re: e-mailin HTML of form results

2001-07-16 Thread fliptop
Bradley M. Handy wrote: Check out the documentation for the Net::SMTP module at: http://search.cpan.org/search?module=Net::SMTP you may also want to investigate mime::lite: http://search.cpan.org/search?dist=MIME-Lite -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Excel to html via CGI

2001-07-16 Thread fliptop
Deneb Pettersson (LMF) wrote: Do both these things handle graphs aswell, or do i have to use something else for that. Basically this is at the moment a planning with the spreadsheet::parseexcel module, it simply reads cell contents in a worksheet. if you want to handle graphs, you'd

Re: Nasty

2001-07-13 Thread fliptop
Curtis Poe wrote: There are other reasons, too. Just today, I was asked to break a version of a Web site we were about to publically release. It took me 5 minutes to find a security hole and demonstrate that I could execute any arbitrary SQL against our database by passing it through the

Re: using mime lite

2001-07-11 Thread fliptop
Teresa Raymond wrote: Dear fliptop: Yes sir! That is exactly what I want to do. ok, good. see below for my thoughts. Teresa Raymond wrote: OK, I am a relative novice to Programming, Perl, CGI, CGI.pm and MIME::Lite. As suggested by others on this list I'm using MIME::Lite. I've

Re: how to upload a file through an html form, again.

2001-07-10 Thread fliptop
Hytham Shehab wrote: hi gurus, first of all, am really gracefull about all who sends me tips of how to make this thing work, but, unfortunately, it doesn't yet. did you make sure your form tag had the enctype in it? ie.- form method=post action=/cgi-bin/someaction.cgi

Re: how to upload a file through an html form?

2001-07-09 Thread fliptop
Hytham Shehab wrote: hi gurus, i use the upload() function in the CGI module to get a file in the filefield tag, but i don't understand how to get it to the server? $fh=$q-upload('file_to_be_uploaded'); while($fh){ print; } you need to tell perl to print the uploaded file to a

Re: Apache configuration

2001-07-09 Thread fliptop
Guillaume Denizot wrote: Hello, excuse me for my english but... I have installed successfuly Apache, Perl, MySQL (DBI) and DBD-mysql. test.pl is a perl file which run. What should I write in my home page: form action= method=POST? How should I configure httpd.conf to execute it?

Re: how to upload a file through an html form?

2001-07-09 Thread fliptop
Curtis Poe wrote: --- fliptop [EMAIL PROTECTED] wrote: you need to tell perl to print the uploaded file to a file on the hard drive: [ snip ] Not true. Printing the file contents directly to the screen is a common method of testing whether or not the file upload was successful

Re: Checking Form input.

2001-07-09 Thread fliptop
Marcus Willemsen wrote: Probably I got it all wrong but can someone give me some general advise how to handle such problems? Use a JavaScript to check the input? you can use javascript, but that won't work if the user has disabled javascript in their browser. i use a 3-step process to

Re: Required Fields Module

2001-07-09 Thread fliptop
Jason Purdy wrote: Found a link that described how to do this on the JavaScript side: http://www.webdeveloper.com/javascript/js_form_example.html adequate, but useless if the user has javascript disabled in their browser. a good choice *only* if it's an internal application where you can

Re: Password protected area using perl.

2001-07-09 Thread fliptop
Gary Stainburn wrote: If you just want restricted access, then Apache and most other servers have some form of user ID/Password control to restricted areas of a web site. if you are running apache, then you should also consider the mod_perl way of doing it. with mod_perl (or .htaccess, for

Re: Required Fields Module

2001-07-08 Thread fliptop
Jason Purdy wrote: Example Hash: %requiredFields = ( 'upload_file' = 'Document Source', 'doc_url||docfile'= 'Specify either Document URL or Document File', 'capture_date' = 'Capture Date' );

Re: newbie question

2001-07-06 Thread fliptop
Aaron Craig wrote: You should always include the code that is giving you the problem when you ask a question. It makes it a lot easier for us to help you. Could you send your code? also include what platform (i'm guessing windows) and webserver you are using.

Re: Sending cgi parameters from email

2001-07-06 Thread fliptop
Peter Cline wrote: Does anyone know if it is possible to send cgi parameters from an email message to a cgi script? I have created an HTML email (only to be used internally with mail clients that are known to support it) that is basically an html form. The action of this form gives the

Re: Basic

2001-07-04 Thread fliptop
Guillaume Denizot wrote: That's my HTML page (without ): html head title Basic /title /head body form action=/perl/base.pl method=POST input type=Text name=saisie value= size=15 /form /body /html How should I do to put input value into variable like $var? first, you'll need a submit

Re: Writing Data Into Existing Excel

2001-07-04 Thread fliptop
madan wrote: I Have An Existing Excel Sheet On Linux And I Want To Embed Some Data Onto This Excel and Then Save It .. Is There Any Perl Script to Do This. I Went Through CPAN's Spreadsheet::WriteExcel , But This Overwrites The Existing Excel , Hence Old Data

correction

2001-06-27 Thread fliptop
sorry, the next installment will be Step 7, not 8.

Re: use of modules with authorize.net

2001-06-21 Thread fliptop
Susanne wrote: does anyone have sample code that would educate me on credit card processing with authorize.net? tia. try this module from cpan: http://search.cpan.org/search?dist=Business-OnlinePayment-AuthorizeNet

beginner's addressbook tutorial - step 6 - writing utility and SQL classes, and using Class::MethodMaker

2001-06-18 Thread fliptop
step 6 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step6.html coming next - step 7 - A summary of what we've done so far note: there was an error in the html::template file provided in step 5, i've corrected it (i left out input elements for the prefix and

Re: beginner's addressbook tutorial - level of presentation

2001-06-15 Thread fliptop
Roger C Haslock wrote: The thoughts behind my questions included the following 'Why our $variable?' I looked at the 'our' variables. It seemed to me that they should be local to the enclosing module: only the database connect/disconnect subroutine names need be exported. Certainly it

Re: quoted text in a perl form text field problem...

2001-06-14 Thread fliptop
David Draley wrote: I have a perl form that records to a MySql database. Every time someone uses the form and enters “quoted text” in a text box or text area the record is not sent. Is there a way to allow “quoted text” to be processed? Any recommendations? use placeholders. ie.-

Re: beginner's addressbook tutorial - level of presentation

2001-06-14 Thread fliptop
Roger C Haslock wrote: I find the general level of detail here a bit advanced for a 'beginner'. i was wondering whether this would be the case. some readers told me they thought it wasn't too advanced, but obviously you feel otherwise. anyone else care to comment on this issue? is the

Re: postgres schema

2001-06-14 Thread fliptop
[reply cc:'d to the list] Kalamity Force wrote: i have a real postgres newbie question. can you instruct me on how to implement this schema. I know that I have to put this text into a file, but how am I executing the script? create the db by typing at a command line: $createdb addressbook

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: I need help installing CGI.pm module through ftp. cgi.pm is part of the standard perl installation. does the box you're developing on have a recent installation of perl? you can find out the version by typing 'perl -v' at a command prompt.

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: I tried the perl -v but get an Internal Server Error msg - no numbers nor anything else useful. here's what i get: $ perl -v This is perl, v5.6.0 built for i686-linux Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic

beginner's addressbook tutorial - step 5 - Adding the start method and our first HTML::Template file

2001-06-14 Thread fliptop
step 5 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step5.html coming next - step 6 - Writing the utility and SQL classes, and using Class::MethodMaker

Re: How to access $ENV{UNIQUE_ID} ????????

2001-06-13 Thread fliptop
Kevin Hancock wrote: I have two scripts both on the same server, both in the same directory even. One has access to the UNIQUE_ID and the other does not. If it is magically part of the environment why cannot both scripts use it? can you post the scripts?

Re: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-13 Thread fliptop
Ken Scott wrote: on 6/10/01 10:19pm, fliptop at [EMAIL PROTECTED] wrote: step 3 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step3.html coming next - step 3 - the perl handler, and a table of contents for the tutorial print Content-type

Re: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-13 Thread fliptop
Curtis Poe wrote: --- fliptop [EMAIL PROTECTED] wrote: print Content-type: text/html\n\n; i could, since both statements do the same thing. now that i think about it, i really don't know why i still do it manually. force of habit, i guess. that's the beauty of perl, 'tmtowtdi

Re: error message

2001-06-12 Thread fliptop
Gary Stainburn wrote: This is what you get when you run a CGI and the cgi terminated before generating any valid output. Usually this happens if the perl script doesn't compile and therefore doesn't run. try 'perl -c script' to see if it compiles okay if your script compiles without

Re: How to access $ENV{UNIQUE_ID} ????????

2001-06-12 Thread fliptop
Kevin Hancock wrote: Hi I am having trouble accessing this value. I would love to be able to use it but it does not appear to be set. I have a script written by someone else who I can no longer ask that is called from a form on my server and one of the first things it does is: my

beginner's addressbook tutorial - step 3 - creating perl classes and our first cgi

2001-06-10 Thread fliptop
step 3 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step3.html coming next - step 3 - the perl handler, and a table of contents for the tutorial

beginner's addressbook tutorial - step 1 - analyzing the project

2001-06-08 Thread fliptop
step 1 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step1.html coming next - step 2 - developing the database

beginner's addressbook tutorial - introduction

2001-06-07 Thread fliptop
the introduction is complete, and is available at http://www.peacecomputers.com/addressbook_toot-intro.html coming next - step 1, analyzing the project.

<    1   2   3