vstxyghosts 0 Report post Posted May 12, 2005 hi all i need from you a big faovur i want to make a form on the web to make visitors email some info which they send it by filling a form and click sumbit plz if you have any any form generator or you have the coda plz teach me how to make it step by step thx hope to replay Share this post Link to post Share on other sites
scab_dog 0 Report post Posted May 12, 2005 If you want to use PHP, Go Tohttp://forums.xisto.com/topic/20516-email-scriptform-with-php-how-to-make-a-simple-email-script-using-php/This is By Snilidude All Thanks goes to HimQuoted from Snilidude's Topic Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually put <a href="mailto:blahblah@blah.blah">Email me</a> if they want an email link on their site, but there are several cons to this.First, it's very inconvenient for those people who use web-based mail such as Yahoo!, Hotmail, or Gmail because that darn Micro$oft Outlook program comes up if one accidently click the link.Second, you are very suseptible to spam bots because they scan your HTML source code for anything with the same pattern as an email address and add it to their database. If you are pretty popular on Google, you can expect mails like "Unlimited Bandw1dth!!1" or "Cows F0und 1n 0utersp4ace!!" in your inbox soon.The TutorialMake a new file called mail.php in Notepad and copy and paste the following <html><head> <title>My first email script</title></head><body> <?php if($content) { $from = $_POST["from"]; //gets the name of the person $email = $_POST["email"]; //gets their email address $content = "This message is from $from whose email address is $email.\r\n-----------\r\n "; //little intro of your email message that you will see in your inbox $content = $content . $_POST["content"]; //concatenates the intro with the real content $content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); //first argument = your email address; second argument = subject of email (make it very catchy so you won't miss it); third argument = the content (DO NOT CHANGE THIS!!) echo "Your message has been sent, and if I like you, then you will receive a reply. Thank you."; //what you want to tell the user after sending } ?> <form method="post" action="mail.php"> <p>Name: <input type="text" name="from" title="Your name"></p> <p>Email: <input type="text" name="email"></p> <p>Message: <textarea rows="5" cols="15" name="content"></textarea></p> <input type="submit" value="Submit"> </form> </body></html> That's it! If you want to see the email script/form in action, I have set one up on my site here: http://forums.xisto.com/no_longer_exists/Also, when someone sends you something with my script, you have to manually type in their email address. So after someone sends you a message, you will get the following in your email:QUOTEThis message is from [the person's name] whose email address is [their email address].-----------[content of message]You will have to copy whatever their email address is, and go to Compose in your mail provider to send them a reply. It's a hassle, but I promise, it won't take more than 1 minute. If you have any questions, concerns, comments, or ideas, feel free to post them below. Thanks and good luck!! Yeha, Thas It!! Just Change Da EMail address, and as i said all Thanks goes to snilidude, Hail Snilidude, Hail Snilidude, Hail snilidude Ahh and if you want another working example, go to http://forums.xisto.com/no_longer_exists/Thats It, Share this post Link to post Share on other sites
snlildude87 0 Report post Posted May 12, 2005 *cough* snLILdude87 *cough*But yeah, if you need anything, post in my thread. Share this post Link to post Share on other sites
BuffaloHelp 24 Report post Posted May 12, 2005 In everyone's Xisto directory under cgi-bin, you will see cgiemail. This is a easy built-in form mailer. It's the easiest form mailer without doing any programming and coding. All you need to do is create the template.However, too generate a form for your visitors to fill in, you could use this auto form generator where you can specify the fields and data type.http://phpfmg.sourceforge.net/home.phpYou can download free form generator and start using it right away. Cheers. Share this post Link to post Share on other sites