Hi, I have a strange problem which occured on friday after a computer crash which I haven't found any solution to so I figure out that i'll try to post the problem here.
I've removed all php code except to get to the basic and the problem seems to be with session.
This is a example form name.php:
print "<form method=\"POST\" name=\"addcountry\" action=\"name_handle.php\">";
print "<table>";
print "<tr><td>Name</td></tr>";
print "<tr><td><input type=\"text\" name=\"country\" size=\"30\"></td></tr>";
print "<tr><td><INPUT TYPE=\"submit\" VALUE=\"Insert\"></td></tr>";
print "</table></form>";
This is the handle file:
print "navn : " . $_POST['country'];
This example works fine, but I use session to validate user and if I put session_start() at the top of the name.php file the $_POST variable is empty.
Anyone know why or how to solve it?
Paal S.