View Single Post
ישן 31-08-06, 08:25   # 7
Elad-A
הוסטסניון
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 1,987

Elad-A לא מחובר  

תנסה ככה:
PHP קוד:
<?

include "config.php";

if(isset(
$_POST['username']))
{
$username $_POST["username"];
$date date("j/n/Y");
$time date("G:i:s");

mysql_query(" INSERT INTO users (username,date,time) VALUES ('$username','$date','$time') ") or die(mysql_error());
}
else
{
echo 
'
<form method=\"post\" action=\"{$_SERVER['
PHP_SELF']}\">\n
<input type=\"text\" name=\"username\">: שם משתמש\n
<input type=\"submit\" value=\"שלח\">\n
</form>
'
;
}
?>
  Reply With Quote