Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

My online form isn't working and I can't figure out why

$
0
0

HELP! I did a form (pretty long one) and it isn't working. Here is the php:

 

<?php

 

/* Subject and email variables */

 

  $emailSubject = 'Football Form';

  $webMaster = 'robyn@redrobyngraphics.com';

 

/* Gathering date variables */

 

  $nameField = $_POST['name'];

  $dateofbirthField = $_POST['dateofbirth'];

  $contactnumberField = $_POST['contactnumber'];

  $emailField = $_POST['email'];

  $facebookField = $_POST['facebook'];

  $twitterField = $_POST['twitter'];

  $instagramField = $_POST['instagram'];

  $addressField = $_POST['address'];

  $cityField = $_POST['city'];

  $stateField = $_POST['state'];

  $zipField = $_POST['zip'];

  $hobbiesField = $_POST['hobbies'];

  $guardianoneField = $_POST['guardianone'];

  $guardianoneaddressField = $_POST['guardianoneaddress'];

  $guardianonecityField = $_POST['guardianonecity'];

  $guardianonestateField = $_POST['guardianonestate'];

  $guardianonezipField = $_POST['guardianonezip'];

  $guardianonecontactnumberField = $_POST['guardianonecontactnumber'];

  $guardianoneemailField = $_POST['guardianoneemail'];

  $guardianoneoccupationField = $_POST['guardianoneoccupation'];

  $guardianonelivewithField = $_POST['guardianonelivewith'];

  $siblingsField = $_POST['siblings'];

  $guardiantwoField = $_POST['guardiantwo'];

  $guardiantwoaddressField = $_POST['guardiantwoaddress'];

  $guardiantwocityField = $_POST['guardiantwocity'];

  $guardiantwostateField = $_POST['guardiantwostate'];

  $guardiantwozipField = $_POST['guardiantwozip'];

  $guardiantwocontactnumberField = $_POST['guardiantwocontactnumber'];

  $guardiantwoemailField = $_POST['guardiantwoemail'];

  $guardiantwooccupationField = $_POST['guardiantwooccupation'];

  $guardiantwolivewithField = $_POST['guardiantwolivewith'];

  $twomostinfluentialpeoplehelpingchoosecollegeField = $_POST['twomostinfluentialpeoplehelpingchoosecollege'];

  $schoolnameField = $_POST['schoolname'];

  $graduationdateField = $_POST['graduationdate'];

  $schooladdressField = $_POST['schooladdress'];

  $schoolcityField = $_POST['schoolcity'];

  $schoolzipField = $_POST['schoolzip'];

  $schoolphonenumberField = $_POST['schoolphonenumber'];

  $counselorField = $_POST['counselor'];

  $counselorcontactnumberField = $_POST['counselorcontactnumber'];

  $counseloremailField = $_POST['counseloremail'];

  $satdateField = $_POST['satdate'];

  $satmathField = $_POST['satmath'];

  $satverbalField = $_POST['satverbal'];

  $satwritingField = $_POST['satwriting'];

  $sattotalField = $_POST['sattotal'];

  $actdateField = $_POST['actdate'];

  $actscoreField = $_POST['actscore'];

  $gpaField = $_POST['gpa'];

  $classrankField = $_POST['classrank'];

  $academicawardsandhonorsField = $_POST['academicawardsandhonors'];

  $intendedmajorField = $_POST['intendedmajor'];

  $heightField = $_POST['height'];

  $weightField = $_POST['weight'];

  $fortytimeField = $_POST['fortytime'];

  $proshuttleField = $_POST['proshuttle'];

  $squatmaxField = $_POST['squatmax'];

  $benchmaxField = $_POST['benchmax'];

  $cleanmaxField = $_POST['cleanmax'];

  $verticalField = $_POST['vertical'];

  $jerseynumberField = $_POST['jerseynumber'];

  $primarypositionField = $_POST['primaryposition'];

  $secondarypositionField = $_POST['secondaryposition'];

  $returnspecialistField = $_POST['returnspecialist'];

  $schoolmascotField = $_POST['schoolmascot'];

  $teamcolorsField = $_POST['teamcolors'];

  $awardsandhonorsreceivedField = $_POST['awardsandhonorsreceived'];

  $lastseasonstatsField = $_POST['lastseasonstats'];

  $lastseasonsteamaccomplishmentsField = $_POST['lastseasonsteamaccomplishments'];

  $coachnameField = $_POST['coachname'];

  $coachcontactnumberField = $_POST['coachcontactnumber'];

  $coachemailField = $_POST['coachemail'];

  $playerprofilelinkField = $_POST['playerprofilelink'];

  $highlightvideolinkField = $_POST['highlightvideolink'];

  $othersportsField = $_POST['othersports'];

  $ncaanumberField = $_POST['ncaanumber'];

  $naianumberField = $_POST['naianumber'];

  $topfivecollegechoicesField = $_POST['topfivecollegechoices'];

  $threefactorsinfluencingcollegechoiceField = $_POST['threefactorsinfluencingcollegechoice'];

  $nameandnumberforconsultationField = $_POST['nameandnumberforconsultation'];

 

  $body = <<<EOD

<br><hr><br>

Name: $name <br>

DOB: $dateofbirth <br>

Contact number: $contactnumber <br>

Email:$email <br>

Facebook link: $facebook <br>

Twitter@: $twitter <br>

Instagram@: $instagram <br>

Address: $address <br>

City: $city <br>

State: $state <br>

Zip: $zip <br>

Hobbies: $hobbies <br>

<br>

Guardian One: $guardianone <br>

Address: $guardianoneaddress <br>

City: $guardianonecity <br>

State: $guardianonestate <br>

Zip: $guardianonezip <br>

Contact Number: $guardianonecontactnumber <br>

Email: $guardianoneemail <br>

Occupation: $guardianoneoccupation <br>

Does student live with: $guardianonelivewith <br>

Siblings: $siblings <br>

<br>

Guardian two: $guardiantwo <br>

Address: $guardiantwoaddress <br>

City: $guardiantwocity <br>

State: $guardiantwostate <br>

Zip: $guardiantwozip <br>

Contact number: $guardiantwocontactnumber <br>

Email: $guardiantwoemail <br>

Occupation: $guardiantwooccupation <br>

Does student live with: $guardiantwolivewith <br>

Two most influential people helping you chose a college: $twomostinfluentialpeoplehelpingchoosecollege <br>

<br>

School name: $schoolname <br>

Graduationdate: $graduationdate <br>

Address: $schooladdress <br>

City: $schoolcity <br>

Zip: $schoolzip <br>

Phone: $schoolphonenumber <br>

<br>

Counselor: $counselor <br>

Contact number: $counselorcontactnumber <br>

Email: $counseloremail <br>

<br>

SATdate: $satdate <br>

SAT Math Score: $satmath <br>

SAT Verbal Score: $satverbal <br>

SAT Writing Score: $satwriting <br>

SAT Total Score: $sattotal <br>

ACTdate: $actdate <br>

ACT Score: $actscore <br>

GPA: $gpa <br>

Class Rank: $classrank <br>

Academic Awards Honors: $academicawardsandhonors <br>

Intended major: $intendedmajor <br>

<br>

Height: $height <br>

Weights in pounds: $weight <br>

Forty Time: $fortytime <br>

Pro Shuttle: $proshuttle <br>

Squatmax: $squatmax <br>

Benchmax: $benchmax <br>

Cleanmax: $cleanmax <br>

Vertical inches: $vertical <br>

Jersey number: $jerseynumber <br>

Primary position: $primaryposition <br>

Secondary position: $secondaryposition <br>

Return Specialist: $returnspecialist <br>

School mascot: $schoolmascot <br>

Team colors: $teamcolors <br>

Awards Honors Received: $awardsandhonorsreceived <br>

Last seaon pertinant statistics: $lastseasonstats <br>

Last season team accomplishments: $lastseasonsteamaccomplishments <br>

<br>

Coach name: $coachname <br>

Contact number: $coachcontactnumber <br>

Email: $coachemail <br>

<br>

Player profile link: $playerprofilelink <br>

Highlight video link: $highlightvideolink <br>

Other sports: $othersports <br>

NCAA eligibility number: $ncaanumber <br>

NAIA eligibility number: $naianumber <br>

Top five college choices: $topfivecollegechoices <br>

Three factors influencing college choice: $threefactorsinfluencingcollegechoice <br>

Contact name contact number for consultation: $nameandnumberforconsultation <br>

EOD;

 

  $headers = "From: $email\r\n";

  $headers .= "Content-type: text/html\r\n";

  $success = mail($webMaster, $emailSubject, $body, $headers);

 

/* Results rendered as html */

 

  $theResults = <<<EOD

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Success</title>

</head>

<body>

<p>SUCCESS! Your form has been sent successfully. Go back to the <a href="index.html">main page by clicking here.</a>

</body>

</html>

EOD;

 

echo = $theResults

 

?>


Viewing all articles
Browse latest Browse all 82585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>