Now, on the page where i make insert, i get parse error but i can't find out why....
Code: Select all
if(isset($_GET['checkEntry']))
{
$table = 'users';
$name = $_GET['name'];
//------------------------------------
$insert_into_db = 'INSERT INTO $table values('$name')';
mysql_query($unosUbazu) or die(mysql_error());
}
else
{
// -------------------form-----------------------------------
<form method="get" action='<? echo'$PHP_SELF'; ?>'>
<input name="name" type="text" id="name">
<input name="checkEntry" type="hidden" id="checkEntry">
<input type="submit" name="Submit2" value="send">
</form>
<?
}
?>