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]
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
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.
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
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
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
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
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
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
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
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
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?
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
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
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
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
Jason Purdy wrote:
Example Hash:
%requiredFields = (
'upload_file' = 'Document Source',
'doc_url||docfile'= 'Specify either Document URL or Document File',
'capture_date' = 'Capture Date' );
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.
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
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
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
sorry, the next installment will be Step 7, not 8.
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
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
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
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.-
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
[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
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.
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
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
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?
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
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
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
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
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
step 1 is complete, and is available at:
http://www.peacecomputers.com/addressbook_toot-step1.html
coming next - step 2 - developing the database
the introduction is complete, and is available at
http://www.peacecomputers.com/addressbook_toot-intro.html
coming next - step 1, analyzing the project.
201 - 239 of 239 matches
Mail list logo