PLZ HELP ME! IM GONNA FREAKIN KILL SOMEONE IF THIS AINT GONNA WORK!
Ok here are my Server infos:
WINXP PRO
APACHE 2.0.40 (Win32)
mysql-max-3.23.49-win
php 4.2.2
heres the code im tryin to get to work:
<html>
<body>
<?php
if ($submit) {
// process form
$db = mysql_connect("localhost", "***", "***");
mysql_select_db("***",$db);
$sql = "INSERT INTO news (subject) VALUES ('$first')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
} else{
// display form
?>
<form method="post" action="<?php echo $PHP_SELF?>">
First name:<input type="Text" name="first"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?php
} // end if
?>
</body>
</html>