It's nothing important... The only wasy I know how to test is save it from dreamweaver, upload it using filezilla, then navigate to the url!
In the end, I went for this code... Can anyone tell me (using the same SIMPLE ways i'm using) where and how I would get the password submitted from part1.html and compare it to the username?
Thanks
PHP Code:
<?
$dbServer=mysql_connect ("localhost","admin","pw");
if (!$dbServer) {echo "Failed to connect to MySQL"; exit; }
mysql_select_db("a3484399_ps",$dbServer);
$sql ="SELECT * FROM users";
$sql.=" WHERE fName=\"".$_POST["searchName"]."\""; // the space before the WHERE is critical
$queryResult=mysql_query($sql);
if (mysql_error())
{
echo "Problem with Query<BR>";
echo "The following error message was returned from MySQL:<BR>";
echo mysql_error();
exit;
}
if (mysql_num_rows($queryResult)==0)
{
echo "No users with that name.";
}
else
{
while ($dbRecord=mysql_fetch_array($queryResult))
{
echo "Welcome ".$dbRecord["fName"]."<BR>";
}
}
?>