Jump to content

Archived

This topic is now archived and is closed to further replies.

ButlerGSU

PHP Form Script

Recommended Posts

I'm using the following to transfer information from an HTML form.  However, only the last line which is suggestions and tips show up in the email after the form is submitted.  Anyone have any ideas as to why that is the case?  I really need to get all the information sent back...

<?php
$to = "user_name_censored@groupwise.university.edu";
$PageTitle = "Thanks";

$Subject = "Club Monthly Report from Website";

$Message = "Club Sports Monthly Report\n";
$Message = "Club Name: ".$_POST['club_name']."\n";
$Message = "Month: ".$_POST['month']."\n";
$Message = "Club Officers: ".$_POST['club_officers']."\n";
$Message = "Advisor: ".$_POST['advisor']."\n";
$Message = "Club Membership: Men: ".$_POST['membership_men']."\tWomen: ".$_POST['membership_women']."\tTotal\n";
$Message = "Club Partcipate: Men: ".$_POST['part_men']."\tWomen: ".$_POST['part_women']."\tTotal\n";
$Message = "What facilities did the club use on a regular or part-time basis?\n" .$_POST['facilities']."\n"; 
$Message = "What are you practice times?\n" .$_POST['practice_time']."\n";
$Message = "When and where did the club meet other than for practice or games??\n" .$_POST['location']."\n";
$Message = "How many competitive events were held against other clubs? List matches and results.\n" .$_POST['match_results']."\n";
$Message = "List any accomplishments by the clubs.\n" .$_POST['club_accompl']."\n";
$Message = "In detail, describe your clubs most successful fundraiser.\n" .$_POST['club_fund']."\n";
$Message = "List any recommendations for improving assistance by Campus Recreation and Intramurals.\n" .$_POST['cri_tips']."\n";

mail("$to","$Subject","$Message");

?>
<html>
<head>
<title><?php $PageTitle ?> </title>
<link href="../clubs/cri.css" rel="stylesheet" type="text/css">
<META HTTP-EQUIV='refresh' CONTENT='2;URL=http://www.georgiasouthern.edu/services/cri/clubs/index.html'>
</head>
<br><br><br><br><br>
<h3 align="center">Thank you for submitting your report.</h3>

</html>

Share this post


Link to post
Share on other sites
to add things to message it should be

[code] $Message = "Club Sports Monthly Report\n";
$Message .= "Club Name: ".$_POST['club_name']."\n";
$Message .= "Month: ".$_POST['month']."\n";
$Message .= "Club Officers: ".$_POST['club_officers']."\n";
$Message .= "Advisor: ".$_POST['advisor']."\n";
$Message .= "Club Membership: Men: ".$_POST['membership_men']."\tWomen: ".$_POST['membership_women']."\tTotal\n";
$Message .= "Club Partcipate: Men: ".$_POST['part_men']."\tWomen: ".$_POST['part_women']."\tTotal\n";
$Message .= "What facilities did the club use on a regular or part-time basis?\n" .$_POST['facilities']."\n"; 
$Message .= "What are you practice times?\n" .$_POST['practice_time']."\n";
$Message .= "When and where did the club meet other than for practice or games??\n" .$_POST['location']."\n";
$Message .= "How many competitive events were held against other clubs? List matches and results.\n" .$_POST['match_results']."\n";
$Message .= "List any accomplishments by the clubs.\n" .$_POST['club_accompl']."\n";
$Message .= "In detail, describe your clubs most successful fundraiser.\n" .$_POST['club_fund']."\n";
$Message .= "List any recommendations for improving assistance by Campus Recreation and Intramurals.\n" .$_POST['cri_tips']."\n";[/code]

Ray

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.