Scusa se non ho dato alcun riferimento, ma son giorni che cerco di risolvere il problema senza riuscirci e a dire il vero manco mi ricordo dove ho trovato il file, sicuramente su questo sito da qualche parte.
Il file si chiama 665.zip.
- l'Index.html è il seguente:
<html>
<head>
<title>Shatners PHP Login</title>
</head>
<body>
<form action="checkuser.php" method="post" name="form1">
<table width="50%" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="22%">Username</td>
<td width="78%"><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
<div align="center">
Signup For A Free Account </div>
</form>
<div align="center"><a href="http://www.clansr.co.uk/shatners">©2003 Shatners
PHP </a></div>
</body>
</html>
- il file db.php è il seguente:
<?
/* Database Information - Required!! */
/* -- Configure the Variables Below --*/
$dbhost = 'localhost';
$dbusername = 'rich_shatners';
$dbpasswd = 'phpmadness';
$database_name = 'rich_shatners';
$sitepath = "http://www.clansr.co.uk/shatners/script_tests/membership_section/"; // full path to your site including http://
// and trailing slash
$sitename = "Shatners PHP";
$adminemail = "shatnersphp@hotmail.com";
/* Database Stuff, do not modify below this line */
$connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd" )
or die ("Couldn't connect to server.");
$db = mysql_select_db("$database_name", $connection)
or die("Couldn't select database.");
?>
Ma ci sono tanti altri file, ditemi se queste righe di codice bastano per capire il problema.
Grazie mille
Ciao Rita![]()
![]()