problemi che sorgono nella programmazione sono tanti e io ci sono incappatto in uno di questi:

sto creando un sistema di news e mi si creano un paio di problemi nell invio della news;

questo è il form che mi crea problemi:




<?php
require("config.php");


if ($action == FALSE)
{
echo "<form action=\"./join.php\" method=\"post\">\n";
echo "<table width=\"100%\" border=\"0\">\n";
echo "<tr>\n";
echo "<td width=\"9%\">Titolo</td>\n";
echo "<td width=\"91%\"><input name=\"titolo\" type=\"text\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>Autore</td>\n";
echo "<td><input name=\"autore\" type=\"text\"></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td valign=\"top\">Premessaggio</td>\n";
echo "<td><textarea name=\"premessaggio\"></textarea></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td valign=\"top\">Messaggio</td>\n";
echo "<td><textarea name=\"messaggio\"></textarea></td>\n";
echo "</tr>\n";
echo "<tr align=\"center\">\n";
echo "<td colspan=\"2\"><input type=\"hidden\" name=\"action\" value=\"join\"><input type=\"submit\" value=\" Join! \"></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</form>\n";
}
else
{
if ($titolo==TRUE && $autore==TRUE && $premessaggio==TRUE && $messaggio==TRUE)
{

@mysql_query("INSERT INTO 'news_scacchirako' ( 'id' , 'titolo' , 'ora' , 'autore' , 'premessaggio' , 'messaggio' )
VALUES ('',
'" . $titolo . "',
'" . $ora("d/m/Y") . "',
'" . $autore . "',
'" . $premessaggio . "',
'" . $messaggio . "');");

echo "
News inserita";
}
else
{
echo "Errore!
Non hai compilato tutti i campi.";
}
}

@mysql_close();
?>


mi dice proprio che nn ho compilato tutti i campi quando invece ho compilato tutti i campi.
allora mi sorge un solo dubbio:
è un problema dell'orario!!!
cosa devo inserire nel codice per inserire l'orario se è questo il problema???
grazie ciao