May 24, 200917 yr How do I make it so when my viewers fill out an information page and hit "Submit" that the information gets send to me, or whomever it needs to be sent it?
May 24, 200917 yr How do I make it so when my viewers fill out an information page and hit "Submit" that the information gets send to me, or whomever it needs to be sent it? Do you kknow any serverside languages?
May 24, 200917 yr Author Do you kknow any serverside languages? Not really... I am pretty new to this.
May 24, 200917 yr Not really... I am pretty new to this. the only way i know is php... its a really simple basic thing to do, im sure you could do it. post back here if you would like to hear more, ill give you a link to a tutorial for doing it, they provide code ect, you just have to put it all together.
May 24, 200917 yr Author I would love to know more, I am trying to learn as much as I can before I venture into the job market for web development.
May 24, 200917 yr Depending on what your server can support Either : Matts script for CGI or sendmail for PHP
May 25, 200917 yr Author Depending on what your server can supportEither : Matts script for CGI or sendmail for PHP How do I tell what my server can support? I use bluehost.com
May 25, 200917 yr How do I tell what my server can support? I use bluehost.com Just had a quick look at your host and all accounts come with php5, it also states there is a free form generator included, might be worth a look Pat
May 25, 200917 yr Make a new page an call it.... send_mail.php inside send_mail.php enter this <?php $to = "YOUR EMAIL ADDRESS HERE"; $subject = $_POST["title"]; $name = $_POST["name"]; $message = $_POST["message"]; $messagesent = "From: $name Message: $message"; $from = $_POST["email"]; $headers = "From: $from"; mail($to,$subject,$messagesent,$headers); echo "Your message has been sent, thank you."; ?> Replace YOUR EMAIL ADDRESS HERE with your email, leave the " there. now, in the file that you want this contact form to be in has to be php, html and css work in php pages... so if you have contact.html, you need to make it into contact.php, just open up your html editor and save the contact file as .php now you need to make a form... put this in your contact.php were you want the form to appear <form action="contact.php" method="post"> Name: <input type="text" name="name"><br/> Email: <input type="text" name="email"><br/> Title: <input type="text" name="title"><br/> Message: <br/><textarea cols="40" rows="5" name="message"></textarea><br/> <input type="submit" value="Submit Message"><br/></form> now.... make sure both contact.php and send_mail.php are in the same directory. finally go into contact.php and enter this at the very top : <?php include("send_mail.php"); ?> DONE Hope this helps. these are just the quick steps to making it and getting it done, but if you want to look at it and see what each bit of code does, this is the tutorial: http://help-developer.com/index.php/2007/0...p-contact-form/
Create an account or sign in to comment