View Full Version : suggestions? mail form w chosen text included
reeljustice
08-31-2001, 05:39 AM
I would appreciate suggestions. I want to place a form on my site which will allow my visitors to thank my sponsors. I want to make it as "idiot proof" as possible.
I THINK I would like to allow the visitor to include his/her name, city and state, click "Send Your Thanks" and have the form emailed to all my sponsors.
I would like to have the form include text such as "I just wanted to thank you for sponsoring Coastal Outdoors. I appreciate you making it possible for us to receive such great information. I will definitely consider you when I make my next purchase."
For the marketing geniuses among you, do you think this set phrase should be used or allow the visitor to type in his/her text.
Thus far, it has been my experience there is a greater number of responses when the visitor has the least to do.
Thank you in advance for your assistance,
Joel
How about a couple of short phrases for the visitor to choose from via radio buttons (using radios so at least one phrase remains checked).
What would you like to say?
++ Thank you so much. I will continue to purchase your goods with a happy heart for a long time to come.
++ We really appreciate your support. I'll enjoying mentioning as such when I recommend your services.
++ Any company that takes the time to notice services such as ours deserves to be noticed!
blah blah....
This may offer ease of use for the visitor, choices for them to choose from, and more variety for the receiver.
Deb
-tis a thought none the less
reeljustice
09-01-2001, 03:11 AM
Thank you Deb. You folks really do a great job. I have recommended you to several of my friends who continuously complain about the lack of reliability, flexibility and support from their ISP hosted websites. Hopefully, some will finally see the light and move.
Joel
daledude
09-03-2001, 12:39 AM
Here is an overly simplistic way of doing it using PHP.
Below are 2 files:
First is the actual form (thankyou.html). You will want to modify it's look and contents and also clean up the form fields. Don't change the NAME attributes. If you do then you need to change the $users_name, $users_city variables in the second file below (send_email.php).
thankyou.html
---------------------------------START CUT HERE
<html>
<body>
<form method="post" action="send_email.php" enctype="application/x-www-form-urlencoded">
Send a thank you form:
<br>
<br>
Name: <INPUT name="users_name">
<br>
City: <INPUT name="users_city">
<br>
State: <INPUT name="users_state">
<br>
<br>
Select a thank you:
<br>
<INPUT type=radio value="1" name="thanks_msg" checked>"I just wanted to thank you for sponsoring Coastal Outdoors. I appreciate you making it possible for us to receive such great information. I will definitely consider you when I make my next purchase."
<br>
<INPUT type=radio value="2" name="thanks_msg">"Thank you so much. I will continue to purchase your goods with a happy heart for a long time to come."
<br>
<INPUT type=radio value="3" name="thanks_msg">"We really appreciate your support. I'll enjoying mentioning as such when I recommend your services."
<br>
<INPUT type=radio value="4" name="thanks_msg">"Any company that takes the time to notice services such as ours deserves to be noticed!"
<br>
<br>
<INPUT type="Submit">
</form>
</body>
</html>
---------------------------------END CUT HERE
This is the second file (send_email.php). This is where the email is actually sent. I have made comments where you should change information that is specific to you.
send_email.php
---------------------------------START CUT HERE
<?
// you will want to change the below thanks messages to what you have
// on the thankyou.html form. Make sure that the VALUE of the radio
// button on the thankyou.html form is the same as the below $thanks[#].
$thanks[1] = "I just wanted to thank you for sponsoring Coastal Outdoors. I appreciate you making it possible for us to receive such great information. I will definitely consider you when I make my next purchase.";
$thanks[2] = "Thank you so much. I will continue to purchase your goods with a happy heart for a long time to come.";
$thanks[3] = "We really appreciate your support. I'll enjoying mentioning as such when I recommend your services.";
$thanks[4] = "Any company that takes the time to notice services such as ours deserves to be noticed!";
// change the advertiser1 and advertiser2, and so on, to be
// the email addresses of the advertisers you wish this email
// to go to. Enter as many email recipients as you wish but
// make sure to separate them with commas as I have.
$recipients = "advertiser1@email.com, advertiser1@email.com, advertiser1@email.com";
// change the subject of the email here
$subject = "A great big kiss from our users!";
// change the following to the email you wish the above
// recipients to see this thankyou came from.
$from = "you@yourhost.com";
// $message is the text in the body of the email
$message = $thanks[ $thanks_msg ];
$message .= "\n"; // puts a newline in the email
$message .= "From: $users_name, $users_city, $users_state";
// no need to change the below line
mail($recipients, $subject, $message, "From: " . $from, "-f" . $from);
// the below is straight html so put anything you want
?>
<H1>Thank you for sending feedback to our sponsors!</H1>
---------------------------------END CUT HERE
It's very rough but hope it helps,
Dale
reeljustice
09-10-2001, 10:59 PM
Thank you Dale. I like this one. I'll work on it and definitely let you know how it goes.
Sincerely,
Joel
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.