Hi Ben,
Number of things wrong with your code, look below.
$select_sql = sprintf("SELECT `username` FROM `users` WHERE `username` =
'$user' AND `password` = '$pass'", mysql_real_escape_string($user),
mysql_real_escape_string($pass));
In the string you are printing using sprintf you need to u
I use:
if(ISSET($select_sql_two)&&$select_sql_two<>""&&!is_null($select_sql_two)) {
or
if($select_sql_two=="submit") {
if "submit" is the button value. I am not sure which is best.
John
Ben Stones wrote:
Hello,
I am having another problem with PHP, and I have tried rectifying the
problem
The way I normally run any sort of form page is something like this. (im
fairly new as well)
Since youre setting $select_sql_two without any conditions, it is setting
the refresh on the page and therefore redirecting you to members.php
You should then place some sort of authentication on the mem
Hello,
I am having another problem with PHP, and I have tried rectifying the
problem with each try failing. The problem I have is, whenever I refresh the
page or visit the URL to where the login form is (which is index.php), it
automatically refreshes to the members page, even if I did not click t