PDA

View Full Version : Form submission help


Grim
December 11th, 2002, 09:03 AM
I want to put a form on my website. When the user clicks the SUBMIT button, I want the contents of their form to be sent to my email address. How do I do it?

Grim
December 11th, 2002, 02:54 PM
Bueler.....

Bueler......

Bueler.......

degsy
December 11th, 2002, 04:35 PM
You'll need a formmail program.
Most popular with be either PHP or PERL.

http://www.scriptarchive.com/formmail.html

Spider
December 11th, 2002, 08:14 PM
If you don't have PHP or CGI on the host then your stuck with
only one way to submit and that's with mailto:
form action="mailto:your@emailaddress.com?SUBJECT=I like to send email from webpages"

The only problem with mailto: is if the user hasn't configured
their default email program then the mail won't be sent. So
many users use a web-based email like Hotmail. So mailto:
will not work, it'll just bootup their Outlook Send interface and
that will be as far as the email goes.

Also using mailto: will popup a few warnings within WindowsXX
warning users about unsecured this and that. Many users get
nervous and close all the interfaces down.

Grim
December 12th, 2002, 05:11 AM
I can't make heads or tails of this php. I guess I'll just skip it. Thanks anyway.

Buzz
December 12th, 2002, 05:43 PM
Grim,

Fire off an email to your host provider. They quite often have a built in script for you to use and complete directions on how to set it up.

Grim
December 15th, 2002, 07:58 PM
OK...I didn't quite give up on this.

I got some code from a friend that he said should have worked. It didn't When the submit button is clicked, the following message appears:

Cannot run the FrontPage Server Extensions on this page: "http://www.nearsports.com/Forms/scorpt_2.htm"
I am an html code novice. I know what I need to get by. apparenlty that's not enough in this case.

I am going to print the code here and hopefully someone will spot the problem for me. Here is the page address for reference:

http://www.nearsports.com/form.html

This game begins Tuesday so I have to fix this really quick. I appreciate your help. Gonna have to put the code in another post. It's too long.

Grim
December 15th, 2002, 08:00 PM
Here's the code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>NEARsports Bowl Pick-em</TITLE>
<META http-equiv=Content-Language content=en-us>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId>
<META http-equiv=keywords content="">
<META http-equiv=description content=""><BGSOUND src=""></HEAD>
<BODY vLink=#c0c0c0 aLink=#0080ff link=#0000ff bgColor=#ffffff
background=fbbg.gif>
<P>&nbsp;</P>
<P align=center><IMG height=304 src="xmlogo.gif" width=365></P>
<FORM onsubmit="" action=../_vti_bin/shtml.dll/Forms/scorpt_2.htm method=post
webbot-action="--WEBBOT-SELF--">
<P align=center><!--webbot bot="SaveResults" startspan U-File="../_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="TEXT/PRE" S-Email-Address="nearsports@yahoo.com"
B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE"
S-Email-Subject="Game Scores" S-Builtin-Fields --><!--webbot
bot="SaveResults" endspan i-checksum="43374" -->&nbsp;<STRONG><FONT
size=6>PICK THE WINNERS OF THE COLLEGE BOWL GAMES!</FONT></STRONG> </P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 100%"
align=left><B><FONT face=Tahoma color=#000000 size=2>&nbsp;&nbsp;&nbsp;&nbsp;
</FONT></B></P>
<P class=MsoNormal align=center>
<TABLE bgColor=black border=1>
<TBODY>
<TR>
<TD bgColor=white>
<P class=MsoNormal><FONT size=4>This will be the last game played at
NEARsports.com that is just for fun. This spring, NEARsports.com will hold
the 1st Annual Basketball Bracket Challenge. Players will be able to fill
out brackets for <STRONG>ALL TEN </STRONG>high school basketball brackets
and <STRONG>BOTH </STRONG>NCAA basketball brackets. There will be prizes
awarded for first, second and third place in all 12 brackets. Corporate
sponsors for the contest will be announced in January.</FONT></P>
<P class=MsoNormal><FONT size=4>In the meantime, pick the winners of all
the college bowl games! No prize this time, just bragging rights. But
HURRY! The first bowl game is Tuesday, December 17. Each game will be
removed from the list just prior to kickoff. HAVE
FUN!</FONT></P></TD></TR></TBODY></TABLE></P>
<P style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 100%"
align=left>&nbsp;</P><STRONG><FONT face=Tahoma size=2></FONT></STRONG>
<P align=center>
<TABLE bgColor=black border=1>
<CAPTION><FONT size=5><STRONG>2002-2003 College Bowl
Games</STRONG></FONT></CAPTION>
<TBODY>
<TR>
<TD bgColor=white>
<P align=center><STRONG><FONT size=4>Date</FONT></STRONG></P></TD>
<TD bgColor=white>
<P align=center><STRONG><FONT size=4>Bowl Game</FONT></STRONG></P></TD>
<TD bgColor=white>
<P align=center><STRONG><FONT size=4>Pick Your
Team</FONT></STRONG></P></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-17-02</FONT></TD>
<TD bgColor=white><FONT size=4>New Orleans Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="NO Bowl"><OPTION
value="North Texas" selected>North Texas (7-5)</OPTION><OPTION
value="Cincinnati ">Cincinnati (7-6)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-18-02</FONT></TD>
<TD bgColor=white><FONT size=4>GMAC Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="GMAC Bowl"><OPTION
value="Marshall " selected>Marshall (10-2)</OPTION><OPTION
value="Louisville ">Louisville (7-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-23-02</FONT></TD>
<TD bgColor=white><FONT size=4>Tangerine Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Tang Bowl"><OPTION
value="Clemson " selected>Clemson (7-5)</OPTION><OPTION
value="Texas Tech ">Texas Tech (8-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-25-02</FONT></TD>
<TD bgColor=white><FONT size=4>Las Vegas Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="LV Bowl"><OPTION
value="New Mexico " selected>New Mexico (7-6)</OPTION><OPTION
value=UCLA>UCLA (7-5)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-25-02</FONT></TD>
<TD bgColor=white><FONT size=4>Hawaii Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Haw Bowl"><OPTION value="Tulane "
selected>Tulane (7-5)</OPTION><OPTION value="Hawaii ">Hawaii
(10-3)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-26-02</FONT></TD>
<TD bgColor=white><FONT size=4>Motor City Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Motor Bowl"><OPTION value=Toledo
selected>Toledo (9-4)</OPTION><OPTION value="Boston College">Boston
College (8-4)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-26-02</FONT></TD>
<TD bgColor=white><FONT size=4>Insight Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="In Bowl"><OPTION
value="Pittsburgh " selected>Pittsburgh (8-4)</OPTION><OPTION
value="Oregon State ">Oregon State (8-4)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-27-02</FONT></TD>
<TD bgColor=white><FONT size=4>Houston Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Hou Bowl"><OPTION
value="Oklahoma State " selected>Oklahoma State (7-5)</OPTION><OPTION
value="Southern Miss ">Southern Miss (7-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-27-02</FONT></TD>
<TD bgColor=white><FONT size=4>Independence Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="ID Bowl"><OPTION
value="Nebraska " selected>Nebraska (7-6)</OPTION><OPTION
value="Mississippi ">Mississippi (6-6)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-27-02</FONT></TD>
<TD bgColor=white><FONT size=4>Holiday Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Hol Bowl"><OPTION
value="Kansas State " selected>Kansas State (10-2)</OPTION><OPTION
value="Arizona State ">Arizona State (8-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-28-02</FONT></TD>
<TD bgColor=white><FONT size=4>Continental Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Con Bowl"><OPTION
value="West Virginia " selected>West Virginia (9-3)</OPTION><OPTION
value="Virginia ">Virginia (8-4)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-28-02</FONT></TD>
<TD bgColor=white><FONT size=4>Alamo Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Al Bowl"><OPTION
value="Colorado " selected>Colorado (9-4)</OPTION><OPTION
value="Wisconsin ">Wisconsin (7-6)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-30-02</FONT></TD>
<TD bgColor=white><FONT size=4>Seattle Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Sea Bowl"><OPTION
value="Wake Forest" selected>Wake Forest (6-6)</OPTION><OPTION
value="Oregon ">Oregon (7-5)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><STRONG><FONT size=4>12-30-02</FONT></STRONG></TD>
<TD bgColor=white><STRONG><FONT size=4>Music City Bowl</FONT></STRONG></TD>
<TD bgColor=white><SELECT size=1 name="MC Bowl"><OPTION
value="Arkansas " selected>Arkansas (9-4)</OPTION><OPTION
value="Minnesota ">Minnesota (7-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>

Grim
December 15th, 2002, 08:01 PM
Continued....


<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>Humanitarian Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Hum Bowl"><OPTION
value="Boise State " selected>Boise State (11-1)</OPTION><OPTION
value="Iowa State ">Iowa State (7-6)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>Sun Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Sun Bowl"><OPTION
value="Washington " selected>Washington (7-5)</OPTION><OPTION
value="Purdue ">Purdue (6-6)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>Silicon Valley Classic</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Sil Bowl"><OPTION
value="Fresno State " selected>Fresno State (8-5)</OPTION><OPTION
value="Georgia Tech">Georgia Tech (7-5)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>Liberty Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Lib Bowl"><OPTION
value="Texas Christian " selected>Texas Christian (9-2)</OPTION><OPTION
value="Colorado State ">Colorado State (10-3)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>Peach Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Peach Bowl"><OPTION
value="Tennessee " selected>Tennessee (8-4)</OPTION><OPTION
value="Maryland ">Maryland (10-3)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>12-31-02</FONT></TD>
<TD bgColor=white><FONT size=4>San Fransisco Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="SF Bowl"><OPTION
value="Air Force " selected>Air Force (8-4)</OPTION><OPTION
value="Virginia Tech ">Virginia Tech (9-4)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Cotton Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Cot Bowl"><OPTION
value="Louisiana State " selected>Louisiana State (8-4)</OPTION><OPTION
value="Texas ">Texas (10-2)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Outback Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Out Bowl"><OPTION
value="Florida " selected>Florida (8-4)</OPTION><OPTION
value="Michigan ">Michigan (9-3)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Gator Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Gator Bowl"><OPTION
value="North Carolina State " selected>North Carolina State
(10-3)</OPTION><OPTION value="Notre Dame">Notre Dame
(10-2)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Capital 1 Citrus Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="C1 Bowl"><OPTION value="Auburn "
selected>Auburn (8-4)</OPTION><OPTION value="Penn State ">Penn State
(9-3)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Rose Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Rose Bowl"><OPTION
value="Washington State" selected>Washington State
(10-2)</OPTION><OPTION value="Oklahoma ">Oklahoma
(11-2)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-01-03</FONT></TD>
<TD bgColor=white><FONT size=4>Sugar Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Sug Bowl"><OPTION
value="Georgia " selected>Georgia (12-1)</OPTION><OPTION
value="Florida State ">Florida State (9-4)</OPTION></SELECT><FONT
size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-02-03</FONT></TD>
<TD bgColor=white><FONT size=4>Orange Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Or Bowl"><OPTION value="Iowa "
selected>Iowa (11-1)</OPTION><OPTION
value="Southern California">Southern California
(10-2)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4>01-03-03</FONT></TD>
<TD bgColor=white><FONT size=4>Fiesta Bowl</FONT></TD>
<TD bgColor=white><SELECT size=1 name="Fiesta Bowl"><OPTION
value="Ohio State " selected>Ohio State (13-0)</OPTION><OPTION
value="Miami ">Miami (12-0)</OPTION></SELECT><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=#ffffff><FONT size=4></FONT></TD>
<TD bgColor=#ffffff>
<P align=right><FONT size=4>Your Name</FONT></P></TD>
<TD bgColor=#ffffff><INPUT size=25 name=""><FONT size=4></FONT></TD></TR>
<TR>
<TD bgColor=white><FONT size=4></FONT></TD>
<TD bgColor=white>
<P align=right><FONT size=4>Email Address</FONT></P></TD>
<TD bgColor=white><INPUT size=25 name=""></TD></TR></TBODY></TABLE></P>
<P align=center><INPUT type=submit value=Submit name=B1></P></FORM>
<P>&nbsp;</P>
<P align=center><STRONG>© 2002, NEARsports.com</STRONG></P>
<P align=center>&nbsp;</P></BODY></HTML>


That's all of it.

Steven.Bentley
December 15th, 2002, 08:06 PM
Using the Front Page method only works if the server you are using has FP extensions installed and available, so you need to check your hosting company's site/email them and find out if they do provide this

Grim
December 15th, 2002, 08:08 PM
If they do not, How can I modify this code to have the form sent to my email without the front page method?