BUMP...sorry i had to work crazy hours all week, this last suggestion didn't work either. No errors, just didn't give the variable a value...
Im posting my whole source file here...add.php
<html>
<head>
<title>Add a user</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Enter in the correct information to add a new contact to your list..</p>
<form method="post" action="add.php">
<input type="text" name="fname_form">
First Name<br /><input type="text" name="lname_form">
Last Name<br /><input type="text" name="phone_form">
Phone Number<br /><input type="text" name="email_form">
Email Address<br /><input type="text" name="address_form">
Address<br />
<!-- this is the new line that doesn't work-->
<? echo "<input type=hidden name=thename value=$name>" ?>
<input type="submit" name="Submit" value="Add Contact">
</form>
<?php
$name = $_GET['name'];//i get this from the last file in the URL
//$name2 = $name;
echo( "Here are your contacts user: $name" );
$db = mysql_connect("localhost", "root");
mysql_select_db("contacts");
if($_POST['Submit'] == 'Add Contact')
{
echo("should be here!");
$somevar = $_POST['thename'];
echo("The var is $somevar");//this prints nothing??
}
mysql_close();
?>
</body>
</html>