Jump to content


Photo

Desperately Need Help, Please!

forms

  • Please log in to reply
2 replies to this topic

#1 DancingBunnyUSA

DancingBunnyUSA

    Member

  • Validating
  • PipPip
  • 19 posts

Posted 14 January 2017 - 12:44 PM

How do I go about making this form work?
http://worldlinedanc...m_wtd-PRIV.html

 

I tried using PHP but it didn't work so took the php down.  Below is what I had for PHP:
 

<?php
$to = "stacyjgwldn@gmail.com";
$subject = "Where To Dance Form";
$message = "Instructor name: " . $_POST['name'] . "\r\n" .
"Email: " . $_POST['email'] . "\r\n" .
"Check one: " . $_POST['change'] . "\r\n" .
"Check one: " . $_POST['addition'] . "\r\n" .
"Check one: " . $_POST['delete'] . "\r\n" .

"USA country: " . $_POST['country'];
"State: " . $_POST['state'];
"Province: " . $_POST['province'] . "\r\n" .
"City: " . $_POST['city'] . "\r\n" .

"UK county: " . $_POST['county'];
"Town: " . $_POST['town'] . "\r\n" .

"Instructor name: " . $_POST['instructor'] . "\r\n" .
"Contact instructor: " . $_POST['emailinstructor'] . "\r\n" .
"Instructor website: " . $_POST['instructorwebsite'] . "\r\n" .

"Venue: " . $_POST['venue'] . "\r\n" .
"Venue address: " . $_POST['address'] . "\r\n" .
"Venue phone: " . $_POST['phone'] . "\r\n" .
"Venue email: " . $_POST['email'] . "\r\n" .
"Venue website: " . $_POST['website'] . "\r\n" .
"Google map: " . $_POST['googlemap'] . "\r\n" .

"Price: " . $_POST['price'] . "\r\n" .
"Level: " . $_POST['ultrabeg'] . "\r\n" .
"Level: " . $_POST['beginner'] . "\r\n" .
"Level: " . $_POST['improver'] . "\r\n" .
"Level: " . $_POST['int'] . "\r\n" .
"Level: " . $_POST['adv'] . "\r\n" .
"Level: " . $_POST['all'] . "\r\n" .
"Days: " . $_POST['sunday'] . "\r\n" .
"Days: " . $_POST['monday'] . "\r\n" .
"Days: " . $_POST['tuesday'] . "\r\n" .
"Days: " . $_POST['wednesday'] . "\r\n" .
"Days: " . $_POST['thursday'] . "\r\n" .
"Days: " . $_POST['friday'] . "\r\n" .
"Days: " . $_POST['saturday'] . "\r\n" .
"Time: " . $_POST['time'] . "\r\n" .
"Info: " . $_POST['info'] . "\r\n" . "\r\n" .

$from = $_POST['email'];
$headers = "From: $from" . "\r\n";
mail($to,$subject,$message,$headers);
?>


 


  • 0

#2 Andrea

Andrea

    Advanced Member

  • Moderators
  • 5,752 posts
  • Facebook:https://www.facebook.com/aandbwebdesignAB
  • LocationSadieville, KY - but always a Texan at heart!!

Posted 15 January 2017 - 01:05 PM

I don't know PHP - but do you have the form-wtd-email.php  file uploaded in the right place?


  • 0

#3 Andrea

Andrea

    Advanced Member

  • Moderators
  • 5,752 posts
  • Facebook:https://www.facebook.com/aandbwebdesignAB
  • LocationSadieville, KY - but always a Texan at heart!!

Posted 15 January 2017 - 02:20 PM

Another thought - I briefly tested the form and upon hitting submit, I get a Page not Found. What are your form settings as to what is to happen when someone submits? Usually, it'll be a 'Thank You' or 'Your form has been submitted' or something like that. Is that particular file missing?

 


  • 0





Also tagged with one or more of these keywords: forms

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

★★★★★ 5 Star Rated Web Developer Course - check it out now!