Si ho MySQL e lo script del contatore che vorrei integrare e questo:

Codice PHP:
<?

#version 1.0

# Righto, get all the variables and stuff from the edit.me file
include ('edit.me');

# set a session ID
session_start();

# This is the bit which adds to the count.txt file

if ($count_what == 'visitors') {
# First it creates a session Id for each visit so that it counts
# visits rather than how many times a page is loaded.
if (!$PHPSESSID) {
$thefile file("count.txt");
$count implode(""$thefile);
$count++;
$myfile fopen("count.txt","w");
fputs($myfile,$count);
fclose($myfile);
}
# done
}

else {
# Else it will count every page load
$thefile file("count.txt");
$count implode(""$thefile);
$count++;
$myfile fopen("count.txt","w");
fputs($myfile,$count);
fclose($myfile);
}

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>Text Counter</title>
</head>
<body bgcolor="Black" text="Silver">

Jinx M's simple hit counter thingy.



You have had:


<?
$thefile 
file("count.txt");
$count implode(""$thefile);

# now print either the text version...
if ($print_what == 'text') {
print 
$count;
}

#else print graphics
else {
$num strlen ($count);
$i 0;
while (
$i $num) : 
$graphic substr ($count$i1);
print 
"<img src=\"$url/$graphic.$ext\" border=\"0\" alt=\"$graphic\">";
$i++; 
endwhile;
}
?>

hits.</p>

</body>
</html>
solo che non so come farlo conteggiare ad ogni invio sul tasto :

Codice PHP:
<input type="submit" value="Invia Email"
Saluti e grazie
Kirara86