Jump to content
xisto Community
vstxyghosts

How To Make A Form ? help plzz ?????

Recommended Posts

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 :P thx hope to replay

Share this post


Link to post
Share on other sites

If you want to use PHP, Go To
http://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 Him

Quoted 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 Tutorial

Make 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:
QUOTE
This 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 :(:P

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

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.php

You can download free form generator and start using it right away.

Cheers.

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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.