Jump to content


Photo

PHP Form Script


  • Please log in to reply
1 reply to this topic

#1 ButlerGSU

ButlerGSU
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 26 September 2006 - 05:05 PM

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>

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 26 September 2006 - 05:06 PM

to add things to message it should be

$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";

Ray






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users