December 6th, 2004, 09:53 PM
|
#1 (permalink)
| | Senior Member
Join Date: Aug 2004 Location: ThisLand Was My Land
Posts: 512
| Form Submission - WebPages
Hello, I am making a site for the Basic High School Wolves Baseball...
i need a submission form that emails all the results to my coach....(yahoo account)
The things i need is just simple text boxes...
Team Name:
Contact Person(s):
Address 1:
Address 2:
Phone:
Work:
Cell:
Fax:
Email:
Affiliation:
----
Coaches Information
Name:
Address:
Phone:
Email:
----
Special Requests:
**AND...in the email...can there be dashes to seperate these sections...?
Thanks Again... ineed this a quick as possilbe
I know you will save me again!
__________________
Gaming: AMD64 3K+, X1800GTO 256, 120gb7200
Personal/Living Room Gaming: (laptop)AMD64 3K+, 9700pro, 60gb5400
|
| |
December 6th, 2004, 10:21 PM
|
#2 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
make two pages:
submission.html: Code: <html>
<form action="mail.php" method="post">
<!-- For as many fields you need, just make sure the name is appropriate -->
<input name="name">
<!-- the submit button -->
<input value="Submit" type="Submit">
</form>
</html> and a mail.php page: Code: <?
//for each posted varible
$variblename=$_POST['namefromform'];
//construct a message:
$message= "$varible1 blah blah blah formatting how you want a \n makes a <br>";
//email to send to
$to= "whoever@whereever.com";
//send the message
mail($to,"The sender",$message,"from whoever")
?>
<!-- Any HTML code to display a "got mail" page --> let me know if this doesnt make sence / you need more.
Blaze |
| |
December 6th, 2004, 11:07 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jul 2003
Posts: 1,253
|
be aware that you will need a PHP with is a service-side processing language that you will need on the server hosting the submission form. |
| |
December 6th, 2004, 11:08 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Yeah, most servers (pay-for) include PHP support.
I'm assuming he is using a PHP supported server?
Blaze |
| |
December 6th, 2004, 11:15 PM
|
#5 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,327
|
If he doesnt have PHP There are CGI/perl scripts and such to do this... but they arent quite as striaght forward to install on remote servers normally. |
| |
December 7th, 2004, 12:44 AM
|
#6 (permalink)
| | Senior Member
Join Date: Aug 2004 Location: ThisLand Was My Land
Posts: 512
| |
| |
December 7th, 2004, 01:06 AM
|
#7 (permalink)
| | Senior Member
Join Date: Aug 2004 Location: ThisLand Was My Land
Posts: 512
|
i need something pretty easy, since i have to have this done as soon as possilbe |
| |
December 7th, 2004, 01:07 AM
|
#8 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Illinois
Posts: 2,959
| |
| |
December 7th, 2004, 01:24 AM
|
#9 (permalink)
| | Senior Member
Join Date: Aug 2004 Location: ThisLand Was My Land
Posts: 512
|
thx..but i need a lot more than just 3 little boxes...as i stated zabove |
| |
December 7th, 2004, 01:49 AM
|
#10 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Illinois
Posts: 2,959
|
I know, that page is just an example, you can put as many as you want, just configure the .cgi file according to the instructions....here's another page that I used that script on, just to show you how easy it can be done: http://www.goldleafgroup.com/about.htm |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |