View Full Version : shplooky....needs your help
marcuscable
March 20th, 2003, 10:00
I'm using a PHP online form...(www.shplooky.com/show_form.html)
I would like to add a few more text fields....would I have to change the PHP doc also? Help?
GregT
March 20th, 2003, 15:30
You would need to edit the forum, and the php source code to accept more and decide what to do with them,
Kaliber
March 21st, 2003, 02:58
Yes, you would need to edit the script. Paste it here along with extra fields you want and I will do it for you.
marcuscable
March 21st, 2003, 09:01
Originally posted by Kaliber
Yes, you would need to edit the script. Paste it here along with extra fields you want and I will do it for you.
Thank you!
This is html:
<HTML>
<HEAD>
<TITLE>E-Mail Form</TITLE>
</HEAD>
<BODY>
<FORM method="POST" action="do_sendform.php">
<P>Your Name:<br>
<INPUT type="text" name="sender_name" size=100>
</p>
<P>Your E-Mail Address:<br>
<INPUT type="text" name="sender_email" size=100>
</p>
<P>Message:<br>
<textarea name="message" cols=50 rows=50></textarea>
</p>
<INPUT type="submit" value="Send This Form">
</FORM>
</BODY>
</HTML>
The PHP:
<?php
$msg = "Sender Name:\t$_POST[sender_name]\n";
$msg .= "Sender E-Mail:\t$_POST[sender_email]\n";
$msg .= "Message:\t$_POST[message]\n\n";
$recipient = "webmaster@shplooky.com";
$subject = "Shplooky Feedback";
$mailheaders = "From: Shplooky Network <> \n";
$mailheaders .= "Reply-To: $_POST[sender_email]\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $_POST[$sender_name]</H1>";
echo "<P align=center>Your message has been sent.</P>";
echo "</BODY></HTML>";
?>
I would like to add the following fields:
text fields:
-Website
I would also like a drop down menu that when certain words are selected, it would make another text field appear!
For example: if someone selected "a friend," then it would make a "referral" text box!
This should be similar for "search engine," and "website."
I would like this combo box to be called "Where did you hear about us?"
All of the selections from the drop down menu should have:
-Website
-Search Engine
-A Friend
-Newspaper
-Other
Thank you very much!:D
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.