Forum Moderators: coopster
just wondering, why is$_POST['sect_name'] = $sectname;
different from$sectname = $_POST['sect_name'];
the latter works, but the first
the first tries to stuff the contents of a variable $sectname into the POST array.
The second takes the value from the POST and puts it into a variable $sectname.
What works for you depends on what you are trying to do. If you want to take the values POSTed and start to use them in an array the second is your way. If you wanted to overwrite what was in the POST array, the first is your code.