RE: Help! My CGI Won't Run Except on the Server

2001-07-23 Thread Fco. Javier Valladolid Hdez.

-yes ... Visit: http://www.activestate.com

=
Francisco Valladolid
V Microsistemas
Taking the Initiative!
[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Help! My CGI Won't Run Except on the Server

2001-07-23 Thread Fco. Javier Valladolid Hdez.

Yes, visit: http://www.activestate.com




=
Francisco Valladolid
V Microsistemas
Taking the Initiative!
[EMAIL PROTECTED]

- Original Message -
From: Meghna Sinha <[EMAIL PROTECTED]>
To: Beginners CGI Mailing List <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 4:27 PM
Subject: RE: Help! My CGI Won't Run Except on the Server


> Hi,
> I am new to CGI scripting.
> Can Perl scripts be deployed on IIS?
> If yes, how?
> Thanks in advance.
> Meghna
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Help! My CGI Won't Run Except on the Server

2001-07-23 Thread Meghna Sinha

Hi,
I am new to CGI scripting. 
Can Perl scripts be deployed on IIS?
If yes, how?
Thanks in advance.
Meghna

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Help! My CGI Won't Run Except on the Server

2001-07-23 Thread Aaron Guy Davies

I have a cgi I'm trying to run that collects information from a webform
and mails it to me. It works perfectly fine on the machine where the
webserver is running, but when I run it on any other machine, I get a "doc
contains no data" error or the equivalent.

The script is available at http://www.columbia.edu/~agd12/email.pl
-- 
____
   /  )  /  )
  /--/ __.  __  /  / __. , __o  _  _
 /  (_(_/|_/ (_(_) / / <_  /__/_(_/|_\/ <__


Re: Table display speed: can be improved?

2001-07-23 Thread John Griffiths

[EMAIL PROTECTED] wrote:
> I have to  
> print "";
> foreach $row(@$recordset)
> {
> print Tr([td([@$row[1..18]])]);
> }
> print "";

I had this prob with a classified ad engine, it was the one big table that choked the 
browser so I made every row a table. the page actually takes about the same amount of 
time to
transfer but you see displayed results at once:

foreach $row(@$recordset)
{
print "";
print Tr([td([@$row[1..18]])]);
print "";
 }
-- 
Dr. John  Griffiths  \( ~ )7  The Teahouse of Experience
MAILTO:[EMAIL PROTECTED] http://www.frontier.net/~grifftoe/
O, call back yesterday. Richard II, act 3, sc. 2.
***
from our Free Advice Department:
Do not put fireworks on the grill.
Whether you're rolling out the old "smokey joe" or firing up a seventy-burner Galaxy 
Blaster, never ever ever put explosives on your barbeque.
NextCard News, 19 Jul 2001

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Form data validation CGI / Perl / MS-FrontPage web page

2001-07-23 Thread Teresa Raymond

I think the best way to do that is to with 2 cgi progs. One would 
validate the html form and then output user's message to a cgi 
generated html form with the body of the message in a textbox which 
they can edit (the other form values can be put into hidden input 
tags). Then they can submit to an email prog (Which you may want to 
validate as well).

1. html form





2. cgi generated html input text box:
use CGI;
my $query=new CGI;
my $msg=$query->param('msg');
my $sender=$query->param('senderemail');
my $firstname=$query->param('firstname');
print <




$msg




EOF


>I would appreciate some help or pointers for the following CGI / Perl /
>MS-FrontPage 2000 form validation problem:
>
>I am writing an autoresponder which generates two e-mails: one to me, and a
>confirmation back to the sender. I have a form on an MS-FrontPage web page
>which collects initial user input. I want to send the input via CGI to a
>Perl script for validation. If the data are NG, cycle it back to the user
>who will be allowed to edit and resubmit it; if the data are OK, send it off
>for processing.
>
>The data are fairly simple: name, user's e-mail address, topic area, subject
>line, and message body.
>
>Being a newbie, I've stepped into this fairly carefully, teaching myself
>Perl and CGI step by step, gradually adding functionality to the script so
>that now the form sends the data to the Perl script, the script generates
>the required two e-mails, and the e-mails are sent off as intended. My test
>setup works well, and so far, I'm a happy camper.
>
>Now, I'm adding the validation portion of the process -- I've been a
>programmer for far too long to know that I never trust user input until
>checked. I've created an imperfect copy of my web page which I use to echo
>back to the user the original values if the data fails validation. I'll
>cycle this until I'm happy with what they've submitted before allowing their
>e-mail to proceed or give up on 'em and post a really rude message to their
>browser (suggestions in that area are appreciated, BTW ).
>
>I've discovered how to echo back to the user their entered 'name', 'e-mail
>address', 'topic area', and 'subject' data. What I have trouble with is the
>'message body' data. I'm using a  HTML tag in the form and it
>doesn't seem to be happy accepting variables as does the  tag, of
>course. I can't do a value="$message_body", for example, within the
> tag. (Or, if I *can*, it doesn't seem to work for me...harumph!)
>
>So, my first question is: how do I display, or echo back, the user's e-mail
>message body so that they have the opportunity to edit it before sending it,
>in this context?
>
>Secondly, does anyone know of the 'proper' way to have a CGI / Perl lashup
>talk back to a FrontPage form to allow for Perl-based, extensive data
>validation (as opposed to the anemic 'validation' abilities that FrontPage
>forms have)?
>
>Thirdly, and slightly off-topic for this list, -- remember my "...imperfect
>copy of my web page" -- how do I include FrontPage's background themes and
>navigation features for my copy of the form page. I'd like the validation
>'response' page to look just like the original calling page and to have the
>user return to a calling page on the site, if possible.
>
>And finally, am I actually headed in the right direction with all of this?
>Yup, I know, "TMTOWTDI" -- that's what makes it fun, of course, but I'm in
>the learning stage, so I need to know at least one or two decent ways to do
>it, first, before I try variations on a theme.
>
>I'm looking for methods, procedures, code samples, snippets, or whatever, to
>guide me through this process -- simple English-based explanations wouldn't
>hurt, either. 
>
>Thank you, all.
>
>
>John--
>[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

*** Teresa Raymond
*** http://www.mariposanet.com
*** [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




UW Bothell Campus

2001-07-23 Thread Robert Omatsu

I am looking into the 3 step program that UW Bothell campus offers. Is there
anyone that has gone threw there class? Or is there a class that anyone
could recommend in the Seattle Area?
 
 
Thanks in advance

Robert Omatsu 

Control Seneca
9107 151st Ave NE 
Redmond, WA 98052

Direct: 425-602-4705
Toll Free: 1-800-446-2446
Fax: 425-602-4722

Email: [EMAIL PROTECTED]   

Visit Us Online at   www.controlseneca.com 

 

 



perl training

2001-07-23 Thread Larry Mullis

Is anyone familiar with CED Solutions Computer Training Center in Atlanta, GA? They 
offer a 5-day class in Perl/CGI and I am considering attending. I would like to have 
some input from someone who has attended one of their classes or that knows something 
about them.

Thanks,
Larry



Re: Hyperlink to act like submit button...

2001-07-23 Thread Teresa Raymond

The format that I know to pass variables is:

>
>Now I have a hyperlink href="helpdesk.cgi?action=test_modify?name=$unique_id"> And I want to pass
>the unique_id onto the next sub it takes it too.
>
>Is this possible and does this make sense?
>
>Regards,
>
>Daniel Falkenberg
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

*** Teresa Raymond
*** http://www.mariposanet.com
*** [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tkperl

2001-07-23 Thread Ron Smith

you may want to look into:  [EMAIL PROTECTED]

Ron

>From: raf <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Tkperl
>Date: Mon, 23 Jul 2001 13:20:26 +0200
>
>Hi,
>is there a mailing-list concerning Tkperl?
>
>
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: e-mailing HTML form results

2001-07-23 Thread Helen Dickey

When we first got the Web site, the initial instrutions said
Your SMTP server is your ISP's SMTP server (Erols, Shentel.net or whatever).
(I have also e-mailed her hosting provider contact to ask.)

"Bradley M. Handy" wrote:

> > -Original Message-
> > From: Helen Dickey [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 23, 2001 7:11 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: e-mailing HTML form results
> >
> >
> > I finished correcting the errors which gave software and comp. error
> > messages.
> > Now I get the pretty page back on my web browser, but it does not send
> > E-mail to me.
> > The two lines that I think might have the problem are:
> >
> > $smtp = Net::SMTP->new("summitrelocation.com");
> The server you connect to needs to be the name of the email server.  It will
> most likely NOT be just summitrelocation.com.  It should something like
> mail.summitrelocation.com, or smtp.summitrelocatio.com.  You need to check
> with her, or her hosting provider for the details.
>
> > $smtp->to("helend\@his.com");
> >
> > (I am writing a response form for my friend Kathy who started the
> > business Summit Relocation and I write her web pages---my first try at
> > being a webmaster---and she wants the pretty page we get back on the web
> > browser to be e-mailed  to her (eventually to her---I am having it
> > e-mailed to me while I test)
> >
> > Please help.
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: e-mailing HTML form results

2001-07-23 Thread Bradley M. Handy



> -Original Message-
> From: Helen Dickey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 7:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: e-mailing HTML form results
>
>
> I finished correcting the errors which gave software and comp. error
> messages.
> Now I get the pretty page back on my web browser, but it does not send
> E-mail to me.
> The two lines that I think might have the problem are:
>
> $smtp = Net::SMTP->new("summitrelocation.com");
The server you connect to needs to be the name of the email server.  It will
most likely NOT be just summitrelocation.com.  It should something like
mail.summitrelocation.com, or smtp.summitrelocatio.com.  You need to check
with her, or her hosting provider for the details.

> $smtp->to("helend\@his.com");
>
> (I am writing a response form for my friend Kathy who started the
> business Summit Relocation and I write her web pages---my first try at
> being a webmaster---and she wants the pretty page we get back on the web
> browser to be e-mailed  to her (eventually to her---I am having it
> e-mailed to me while I test)
>
> Please help.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Testing for truth

2001-07-23 Thread fliptop

Daniel Falkenberg wrote:
> 
> I would like to be able to test my SQL query for truth. To do this I would
> like to be able to do a SELECT query and if the colunm contains nothing I
> would like my script to be able to return and tell me this. As an example.
> if I do a SELECT statement as follows
> 
> SELECT test FROM support WHERE unique_id ='1234'
> 
> If test = '(NOTHING)'  print Sorry the search retuned no results please
> search again.
> elsif test = 'hello world' print here are the results for your search.
> 
> I can do this exact same thing if I am searching with numeric values such as
> data and time.  But can't seem to return a true statement if the column
> contains some words?

from perldoc DBI:

In a scalar context, `selectrow_array' returns the
value of the first field. An `undef' is returned if
there are no matching rows or an error occurred. Since
that `undef' can't be distinguished from an `undef'
returned because the first field value was NULL,
calling `selectrow_array' in a scalar context should
be used with caution.


so you could write:

my $query = qq{select test from support where unique_id='1234'};
my $truth = $dbh->selectrow_array($query);
(defined $truth) ? (print "here are your results") : (print "sorry, no
results");

but be sure the 'test' field is defined as not null!  ie.-

create table support (test varchar(25) not null);

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tkperl

2001-07-23 Thread raf

Hi,
is there a mailing-list concerning Tkperl?




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: e-mailing HTML form results

2001-07-23 Thread Helen Dickey

I finished correcting the errors which gave software and comp. error
messages.
Now I get the pretty page back on my web browser, but it does not send
E-mail to me.
The two lines that I think might have the problem are:

$smtp = Net::SMTP->new("summitrelocation.com");
$smtp->to("helend\@his.com");

(I am writing a response form for my friend Kathy who started the
business Summit Relocation and I write her web pages---my first try at
being a webmaster---and she wants the pretty page we get back on the web
browser to be e-mailed  to her (eventually to her---I am having it
e-mailed to me while I test)

Please help.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Testing for truth

2001-07-23 Thread PURMONEN, Joni

I'm a newbie myself, but if I understand you correctly, you just need to
check if the SQL query returns a defined value?

simply:

if (!defined($sql)){
do something...
}
else {
do something else
}

or:

print "sorry" if !defined($sql);

print "Yippee" if defined($sql);

Joni

-Original Message-
From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]]
Sent: 23 July 2001 00:42
To: '[EMAIL PROTECTED]'
Subject: Testing for truth


List,

I would like to be able to test my SQL query for truth. To do this I would
like to be able to do a SELECT query and if the colunm contains nothing I
would like my script to be able to return and tell me this. As an example.
if I do a SELECT statement as follows

SELECT test FROM support WHERE unique_id ='1234'

If test = '(NOTHING)'  print Sorry the search retuned no results please
search again. 
elsif test = 'hello world' print here are the results for your search.  

I can do this exact same thing if I am searching with numeric values such as
data and time.  But can't seem to return a true statement if the column
contains some words?

Any ideas?

Thanks in advance.

Regards,

Daniel Falkenberg


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]