TER General Board

Touch My CGI's....Hardcore Programmer Question
heatherbarronxxx See my TER Reviews 8675 reads
posted
1 / 5

I am trying to add mailform to my site below. See the Contact Me page. I am getting much better at programming stuff and I put the CGI script in the cgi-bin folder. I created the form and a pointer that refers to the script in the folder. However, the page does not work.  The script is Unix server friendly. I am lost. Any hardcore programmers or CGI bin molesters please email me. Thanks in advance. Nothing turns me on more than a computer guru.

Luv,

Heather

San Diego Man 6623 reads
posted
2 / 5

We're more of a Microsoft shop here then Unix, but a few things seem out of place when viewing your document source. I have Visual Interdev loaded on my machine, and every web site bug causes a message to appear on my computer "An error has occured on line number X. Do you wish to debug?..." Anyway, I get errors on the mouseover and mouseout events on your 4 links (About Me, Contact, etc). I don't see the event code or any java script to run the events in your source. There are 2 functions being called (MM_swapImage andMM_swapImgRestore. Also, it looks like you used Front Page to create the site, and I'm not sure that this will work on a Unix server. Be happy to help more if you want.

linkmeister 5 Reviews 7127 reads
posted
3 / 5

I took a look and here's what I found:

1. The images you referenced in the mouseover events could not be found:
images/sn1a.gif
images/sn2a.gif
images/sn3a.gif
images/sn4a.gif

Try changing those references to:
http://www.lorilane.net/images/sn1a.gif
http://www.lorilane.net/images/sn2a.gif
http://www.lorilane.net/images/sn3a.gif
http://www.lorilane.net/images/sn4a.gif
(or copy them into your own images directory)

Do you have the mouse event functions defined?  EG,
function MM_swapImage() {
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i [less than sign] (a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() {
 var i,x,a=document.MM_sr; for(i=0;a&&i [less than sign] a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

2. On your contact page you reference:
http://www.heatherbarron-private.com/cgi-bin/formmail.pl
but that perl script cannot be found/executed.

Make sure the script file is there and it has "execute" permission.  IE, issue the Unix command:
chmod 755 FormMail.pl

Make sure you reference the EXACT upper and lower case letters on the filename.  Unix is case sensitive!
The following are not the same:
formmail.pl
FormMail.pl

Also:
"The script, FormMail.pl, needs to be placed in your server's cgi-bin and the anonymous WWW user must have the ability to read/execute the script. If you do not have access to your server's cgi-bin, yet you can execute cgi scripts, you may want to try adding a .cgi extension to the FormMail.pl, so you could rename it to FormMail.cgi."

See the link below for more information and tips.

And check this site for a good working example:
http://www2.ucsc.edu/cats/cgi-bin/mailform.pl

If you still need help, contact me at:
[email protected]

(or maybe I'll just have to come over and get into the box) (-:

-- Modified on 11/29/2001 5:56:03 PM

straightman 5417 reads
posted
4 / 5
cableguy 2 Reviews 7479 reads
posted
5 / 5

Finally some advice we can all use... :-)

Register Now!