On 22 Jul 98, at 16:51, Brent Eades wrote:

> On 15 Jul 98, Suzanne wrote:
> 
> > Will I have to get one of Matt's scripts and adapt it for my client's
> > use? How does the totally clueless go about doing this?
> 
> Well, you can reference any CGI script anywhere on the Web as the 
> ACTION of your form, so the script needn't reside on your client's ISP's
> server.

That should actually read "

Well, you shouldn't be able to reference any CGI script anywhere on the Web 
as the 
"

I once consulted to a company who fired their webmaster.  The guy they fired 
was a writer who was not very comfortable with computers and he received no 
support from his IS department as they wanted the website (the write was 
natuarlly in the media department).  Well they put out an ad for a real super 
duper kind of webmaster. I met the new webmaster and the first question I was 
asked was if they should change hosts.  I just looked at the webmaster and her 
boss with incredulity. This is what I had been suggesting every since I began 
consulting. But why even ask me. This was the new super duper webmaster.

I had let the previous webmaster use my cgi-bin as his host did not allow cgi-
bin access (yes, yes even in 1997).  Well when they got the new webmaster I 
told her to remove all references to my cgi-bin. She said she would. A week 
went by. I asked again. She said he would. Another week went by and she said 
she was very busy; I asked her how long she thought it would take --ah .. no 
answer. It was a simple grep search and replace that could take a max of 30 
minutes from logon to logoff.  I said forget it. I then put a little snipped of code 
in my cgi and if the referal was from here website then the script sent her an 
email to remind her to stop using my cgi-bin.

Boy, did she call. She asked me to stop sending the emails. I said there was 
nothing I could do about it. The cgi was doing it. If she didn't use my cgi-
bin...well....then there would be no emails.

> I have a standard 'formmail' sort of script on my server (Matt Wright's
> formmail.pl, come to think of it) that you could reference if you wanted,
> so long as you don't mind your client's users seeing "contacting
> http://www.almonte.com" in the status bar for an instant... let me know if
> you're stuck and want to take me up on it.  Only takes me a minute to
> configure for your use.

Yeah, a simple email is welll.....simple.

I was just working on a script. Here is something:

open(MAIL,"|$mailprog -t") || &print_error("mail doesn't open");
        print MAIL "To: webmaster\@rede.com\n";
        print MAIL "BCC: $bcc\n";
        print MAIL "Reply-to: $mail_to\n";
        print MAIL "Errors-to: $mail_to\n";
        print MAIL "From: Web Order <$mail_to>\n";
        print MAIL "Subject: Web Order\n\n";
print MAIL <<END;

Date: $date

confirmation: $confirmation
id: $id
Cardholder_Name: $Cardholder_Name
Card_Number: $Card_Number
Expiration_Date: $Expiration_Date
Ship_Date: $Ship_Date
Cancel_Date: $Cancel_Date
PO_Number: $PO_Number
Store_Number: $Store_Number
Dept_Number: $Dept_Number
Special_Instructions: $Special_Instructions
Product:
[qty~product id~desc~pkg~price~pkg2]
        @mail_break
Total: $total

END
        close (MAIL);

And it can be much simpler than that. Be sure to use CGI.pm.

use CGI;
$q = new CGI;
my @keys = $q->param;
foreach $key (@keys) {
        $v = $q->param($key);
        $resp .= "$key = $v\n";
}
and ten $resp contains all the key/values passed from the cgi
 _________________________________________________________
Peter J. Schoenster                      [EMAIL PROTECTED]
Exercise Your Brain..Read a Book       http://www.rede.com/
             Free CGI Scripts and Applications
           http://www.rede.com/samples/index.html
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to