help with a simple form

latest_face

New Member
hello folks,
i'm a novice webbie, so forgive me.
i am trying to add a simple "join our mailing list" form on my site. i know a little about forms in dreamweaver (which i'm using) but don't know the basics of how to make this work.
help?!
:eek:
 

KristiB

New Member
I just had the same problem.
Have a look at www.ymlp24.com I have just set ont up for a client of mine & it is really easy to use. Make the newsletter template in dreamweaver & upload it into their site. There is a free version as well.
They supply the code you need for people to sign up for the newsletter.

Hope it helps
 

diamotsu

New Member
well, the way to get a form to work is this
<form method="POST" action="nextpage.php">
Your email<input type="text" id="email" name="email" value="[email protected]">
Your Name<input type="text" id="name" name="name" value="John Doe">
<input type="submit" name="submt" value="join our mailing list">
Then on nextpage.php you would put the following php code in the head

<? php
mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because ' . mysql_error());
mysql_select_db ("database_name");
$query = "INSERT INTO 'tablename' ('email', 'name', ) VALUES ('$email', '$name', )
$email = $_POST['email'];
$name = $_POST['name'];
?>

that's if your server runs php and mysql, otherwise, disregard this completely, lol
 
Last edited:
Top