PHP/mysql/HTML - inserting a string value into mysql and getting it back for display
===

I'm inserting a certain string value with a form in html(it's actually php, i'm echo-ing html) into mysql. Few days ago I inserted the value let's say "Ahhh". Now, i'm trying to insert something else, but it still brings up that old value. It's not the browsers cache nor is the value in my code wrong. 


Form looks like this:

    # form for adding a notice
	echo "<form name='formAdd' action='controller.php' method='post'>";
	echo "<input type='text' name='data' size='50'/>";
	echo "<input type='hidden' name='user' value='$user' />";
	echo "<input type='submit' name='submit' value='Add notice'/>";
	echo "</form>";

I have 3 php files. functions.php, controller.php and the main file that shows content and creates the form that you can see above. The $user that i'm passing to controller.php is the right value that should be inserted (I print it and it's ok).

In controller.php I get the user by

    if($_POST["user"]!=NULL){
	# HERE he actually comes in, but gets another value from before. 
		$user = $_POST["user"];
	}

After a call of a insert function I redirect back to the main file that should show me the updated value, but it shows the wrong one instead.

Any ideas?    

