Jump to content
Killersites Community
DancingBunnyUSA

Desperately Need Help, Please!

Recommended Posts

How do I go about making this form work?
http://worldlinedancenewsletter.com/form_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);
?>


 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×