Newbie
Notice: Undefined variable: submit in /home/fhlinux169/c/
clashoff.co.uk/user/htdocs/create_entry.php on line 7
not registered
This is an error message i get when trying to setup userlogin on my
website.
This is my code please help.
<?php
mysql_connect("localhost", "root") or
die ("Could not connect to database");
mysql_select_db("user") or
dir ("Could not select database");
if ($submit == "Register")
{
$query = "insert into user
(username, password) values ('$username', '$password')";
mysql_query($query) or
die (mysql_error());
?>
<h3>You are now registered</h3>
<a href="index.html">Go back to main page</a>
<?php
}
else
{
print("not registered");
}
?>
.
Relevant Pages
- Re: [PHP] why so slow?
... or die; ... or die ("Couldn't execute query2"); ... Yeah it will be that hit counter or whatever it is you are trying to load - I had one myself that used JS and was hosted on another website and held up the page it was on by a good 3-4 seconds, and that was on a good day. ... (php.general) - RE: [PHP] urlencoding.
... I like the die() in there so I can just use an if statement at the ... I haven't done much php and only a little web development in perl. ... I am having the user fill out a form and then save the data in MySQL. ... My problem is that any field that contains a double quote, ... (php.general) - Re: oracle mystery
... I remember in a class i had we needed to connect to an oracle server in ... PHP and seemingly randomly the pages would just die. ... those special accented characters? ... (comp.lang.php) - Geeklog <=1.5.2 SEC_authenticate()/PHP_AUTH_USER sql injection exploit
... software site: http://www.geeklog.net/ ... working against PHP>= 5.0 ... you can inject sql code in the 'username' argument of this function, ... (Bugtraq) - Newbie
... This is an error message i get when trying to setup userlogin on my ... website. ... die; ... (comp.lang.php) |
|