Click to See Complete Forum and Search --> : CGI Form mail


shstar50
09-08-2004, 08:45 PM
Hey, all. I have written my first form, using CGI Form Mail with information I got from my host administrator. My particular project is for a job application I want to be able to put on anyone's site that will send the application info to thier bin mail, and redirect to a "Your application has been sent" page, with a home link on that, of course. I wrote this 'job application' page, but it doesn't send info to my bin mail, and it doesn't redirect. Is there anyone willing to help me debug this page?


Thanks in Advance!

dancerman
09-13-2004, 12:39 PM
Can't "see" what's wrong with it until we can "see" it.

shstar50
09-13-2004, 01:12 PM
Thank you for responding! I wanted to make sure someone was willing to look at my code first..here it is
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Job Application Sample 1</title>
</head>
<body>
<center><h1>Shooting Star Web Design Job Application</h1><p>

<form action="http://shootingstarwebdesign.com/cgi-bin/FormMail.pl" method="post">
<input TYPE=HIDDEN name="recipient" value="donna@shootingstarwebdesign.com">
<input TYPE=HIDDEN name="redirect" value="http://shootingstarwebdesign.com/jobappsent.html">
<input type="hidden" name="email" value="Shooting Star Web Design Job Application Page">
<input type="hidden" name="Form_Name" value="Job Application">
<input type="hidden" name="Subject" value="SSWD Job Application">




Full Name:<input type="text" NAME="full_name" SIZE="30"><p>
Address:<textarea name="address" rows=6 cols=40></textarea><p>
Phone:<input type="text" NAME="phone" SIZE="30"><p>
Email:<input type="text" NAME="email" SIZE="30"><p>
<b><u>Employment History</b></u><p>
Employer:<input type="text" NAME="job1" SIZE="30"><p>
From:<input type="text" NAME="job1_start_date" SIZE="10">To:<input type="text" NAME="job1_end_date" SIZE="10"><i>mm/dd/yr</i><p>
Position:<input type="text" NAME="job1_position" SIZE="30"><p>
Duties:<textarea name="job1_duties" rows=6 cols=40></textarea><hr><p>
Employer:<input type="text" NAME="job2" SIZE="30"><p>
From:<input type="text" NAME="job2_start_date" SIZE="10">To:<input type="text" NAME="job2_end_date" SIZE="10"><i>mm/dd/yr</i><p>
Position:<input type="text" NAME="job2_postition" SIZE="30"><p>
Duties:<textarea name="job2_duties" rows=6 cols=40></textarea><hr><p>
Employer:<input type="text" NAME="job3" SIZE="30"><p>
From:<input type="text" NAME="job3_start_date" SIZE="10">To:<input type="text" NAME="job3_end_date" SIZE="10"><i>mm/dd/yr</i><p>
Duties:<textarea name="job3_duties" rows=6 cols=40></textarea><hr><p>
<b><u>Education</b></u><p>
High School:<input type="text" NAME="High_School_Name" SIZE="30">Graduate?<input type="text" NAME="Graduate?" SIZE="6"><p>
From:<input type="text" NAME="High_School_Start_Date" SIZE="10">To:<input type="text" NAME="High_School_End_Date" SIZE="10"><i>mm/dd/yr</i><hr><p>
College:<input type="text" NAME="College_Name" SIZE="30">Degree:<input type="text" NAME="Degree" SIZE="15"><p>
From:<input type="text" NAME="College_Star_Date" SIZE="10">To:<input type="text" NAME="College_End_Date" SIZE="10"><i>mm/dd/yr</i><hr><p>
Technical School:<input type="text" NAME="Technical_School_Name" SIZE="30">Degree:<input type="text" NAME="Degree" SIZE="15"><p><p>
From:<input type="text" NAME="Technical_School_Start_Date" SIZE="10">To:<input type="text" NAME="Technical_School_End_Date" SIZE="10"><i>mm/dd/yr</i><hr><p>
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit Application">
<input type="Reset">
</form>
</body>
</html>

CyCo
09-13-2004, 01:39 PM
Originally posted by shstar50
I wrote this 'job application' page, but it doesn't send info to my bin mail, and it doesn't redirect. Is there anyone willing to help me debug this page?


Thanks in Advance!

I believe the problem lies in the actual configuration and/or installation of the "script" itself... not your form. Have you ever configured and installed a Perl script?

dancerman
09-13-2004, 01:42 PM
Keep in mind that the better progammers won't even stop at a post that does not have the courtesy of presenting what needs to be worked on.

speaking of which, your form appears to be all very nice, etc,
but you WILL have to post the FormMail.pl code in order to see what you need to do.
Probably there are format requirements in the script for sending eMail and the redirect.
If your host admin will not let you have the script, then you will have to wrestle with them.

shstar50
09-13-2004, 02:03 PM
Thanks very much! The code I was using was given me by my host administrator. That's why I can't figure out what I did wrong..but I suppose the best thing would be to ask him? I will also post as per your instructions, and Thank you so much for your input!

Thank you for your kind words regarding my job application...I did work hard on that, and will improve as I go!

dancerman
09-13-2004, 02:32 PM
You were given some HTML "code"
but the perl code needed to check is the cgi script itself. the formmail.pl file.