From:                   "Chris Zampese" <[EMAIL PROTECTED]>
To:                     "perl list" <[EMAIL PROTECTED]>
Subject:                finishing a script
Date sent:              Mon, 21 Jan 2002 10:31:10 +1300

> Hi All,
>       Just needing help regarding ending a script properly.  I have a
>       script which I use basically to send an email consisting of the
>       data entered in a form.  The start looks like this..
> #!f:\intranet\cgi-bin\bin\perl.exe -w
> use CGI ':standard';
> use Net::SMTP;
> 
> Then I use... 
> $objMail=Net::SMTP->new($server);
> with all its additions to send the mail.  
> The script is called when the user hits the submit button.  This works
> fine, and the email is sent, but it doesnt seem to finish, so the form
> page sits waiting, so I cant have an onUnload javascript event to make
> a thank you page.  
>   Sorry about the long message,
>           Thanks for all your help (both past and future!)
>                                    Chris.

And are you prining sending any data back to the client ?

You should not use any onUnload nonsense, this script should 
make the "thank you" page. Or report a problem.

Jenda





=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

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

Reply via email to