INDEX.html
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PLAY 4 FUN COMMUNITY |HOME|</title>
<style type="text/css">
<!--
body {
background-repeat: repeat-x;
background-color: #999999;
background-image: url(sfondo.png);
}
body,td,th {
font-size: medium;
border-left-color: #FFFFFF;
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 104px;
top: 32px;
}
#Layer1 {
position:absolute;
width:797px;
height:170px;
z-index:1;
left: 88px;
top: 15px;
}
#Layer2 {
position:absolute;
width:200px;
height:115px;
z-index:2;
left: 88px;
top: 224px;
}
#Layer3 {
position:absolute;
width:200px;
height:115px;
z-index:3;
left: 689px;
top: 230px;
}
.Stile1 {font-family: Haettenschweiler}
-->
</style></head>
<body>
<div id="Layer1" style="position: absolute; left: 67px; top: 7px; height: 208px; width: 821px"><img src="Banner.png" width="800" height="200" /></div>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<div style="position: absolute; width: 156px; height: 325px; z-index: 2; left: 75px; top: 225px; border-style: inset; border-width: 2px" id="livello1">
<p align="center">
<font face="Haettenschweiler" style="font-style: italic" size="4">SEI NUOVO!^?</font></p>
<p align="center">
<font face="Haettenschweiler" style="font-style: italic" size="4"><a href="reg.htm">Registrati</a></font></p>
<p align="center">
<font face="Haettenschweiler" style="font-style: italic" size="4">Login</font></p>
<p align="center">
<form name="login" method="post" action="login.php" onsubmit="encrypt();">
<p align="center">Nome utente:
<input name="nickname" id="nickname" type="text" />
</p>
<p align="center">Password:
<input name="password" type="password" type="text" />
</p>
<p align="center">
<input type="hidden" name="md5ed" value="">
<input type="hidden" name="login" value="1">
<input name="Submit" type="submit" value="Login">
</p>
</form>
</p>
<p align="center">
<font face="Haettenschweiler" style="font-style: italic" size="4">
<a href="http://clan-glialtri.forumfree.net/">Sponsor By Clan <br>
Gli Altri</a></font></div>
<p align="left"> </p>
<div style="position: absolute; width: 158px; height: 164px; z-index: 2; left: 73px; top: 558px; border-style: inset; border-width: 2px" id="livello3">
<p align="center" style="margin-bottom: -1px"><font face="Haettenschweiler">
<img src="home.png" width="30" height="25"><span style="vertical-align: top">Home</span></font><p align="center" style="margin-bottom: -1px">
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="141" height="160">
<param name="movie" value="home.swf">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="home.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="141" height="160" quality="High" wmode="transparent"></object>
<p align="center" style="margin-bottom: -1px"> </div>
<p align="center"> </p>
<div style="position: absolute; width: 131px; height: 297px; z-index: 2; left: 731px; top: 219px; border-style: inset; border-width: 0px; " id="livello2">
<script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=120X600/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script>
</div>
</body>
</html>
PAGINA DI REGISTRAZIONE
Codice HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Registrazione</title>
<style type="text/css">
<!--
body {
background-color: #999999;
background-image: url(sfondo.png);
background-repeat: repeat-x;
}
-->
</style></head>
<body>
<form name="datiUtenti" action="paginarisposta.php" method="POST">
<fieldset style="width: 475px; height: 135px">
<legend>
<p align="center">
<font face="Copperplate Gothic Bold"> <font color="#FFFFFF"> Dati
</font> </font>
</p>
</legend>
<label> <br>
<br>
<font face="Halo"><img src="01reg.png"> </font> <input type="text" name="nickname"> </label>
<p><label><font face="Halo"><img src="02reg.png"> </font> <input type="text" name="nome"> </label>
<label><br>
<br>
<font face="Halo"><img src="03reg.png"> </font>
<input type="text" name="cognome"> </label>
</p>
<label>
<p><font face="Halo"><img src="04reg.png"></font>
<input type="password" maxlength="8" size="20" value="" name="password">
</p>
<p><font face="Halo"><img src="05reg.png"></font>
<input type="text" name="email">
<br>
<br><input type="submit" value="Invia i Dati"> <input type="reset" value="Cancella">
</label>
</p>
</fieldset>
</form>
</body>
</html>
PAGINA DI RISPOSTA
Codice PHP:
<?php
if($_POST) {
inserisci_record();
}
else {
echo("Finito");
}
function inserisci_record()
{
require 'connandconfig.php';//connessione all database mysql
$nickname = trim($_POST['nickname']);
$nome = trim($_POST['nome']);
$cognome = trim($_POST['cognome']);
$password = trim($_POST['password']);
$email = trim($_POST['email']);
if(get_magic_quotes_gpc())
{
$nickname = stripslashes($nickname);
$nome = stripslashes($nome);
$cognome = stripslashes($cognome);
$password = stripslashes($password);
$email = stripslashes($email);
}
$nickname = mysql_real_escape_string($nickname);
$nome = mysql_real_escape_string($nome);
$cognome = mysql_real_escape_string($cognome);
$password = mysql_real_escape_string($password);
$email = mysql_real_escape_string($email);
require 'connandconfig.php';
$query = "INSERT INTO Utenti (nickname,nome,cognome,password,email)
VALUES ('$nickname','$nome','$cognome','$password','$email')";
$result = mysql_query($query);
if (!$result) {
die("Errore nella query $query: " . mysql_error());
}
$id_inserito = mysql_insert_id();
mysql_close();
$messaggio = urlencode("Inserimento effettuato con successo (ID=$id_inserito)");
header('location: '.$_SERVER['PHP_SELF'].'?msg='.$messaggio);
}
?>
UN PO LUNGO CMQ QUESTO E TUTTO DICIAMO ALMENO QUELLO CHE VI SRVE SAPERE IL RESTO SONO PAGINE EXTRA NON COLLEGATE AL MIO PROBLEMA
*Ricordati che scrivere in maisucolo equivale ad urlare, e in questo forum non è cosa gradita