Question:

HTML code needed for mailing list!?

by  |  earlier

0 LIKES UnLike

I need an HTML code for typepad that will enable me to set up a mailing list for people to join. Basically I need a code that will make a form where people can type in their name and e-mail address and that info will be sent to my e-mail address. Is this possible? Does anyone know a code that I can use? THANKS!

 Tags:

   Report

2 ANSWERS


  1. <?php

    define('MY_EMAIL', 'me@my.com');

    if (isset($_REQUESt['email'])) {

    mail(MY_EMAIL, 'New Signup', $_REQUEST['name'].': '.$_REQUEST['email']);

    echo "Mail sent.  Thank you.';

    exit();

    }

    ?>

    <form method="post">

    Name: <input type="text" name="name" />

    E-mail: <input type="text" name="email" />

    <input type="submit" />

    </form>


  2. You are referring to the use of a form and web form input. It's not as easy as it may sound as it involves your server (or a third party one), and some PHP programming.

    Here's a tutorial (with the code) for a so-called 'simple' way of doing this yourself:

    http://www.informit.com/articles/article...

    There are also much more comprehensive paid services available such as a full email message and response system including input forms for web pages as offered by Aweber.com and a couple of others for a small monthly payment.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.