[PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Sabine
Hello to all, I distributed my app to a new server and suddenly had values saved twice in the db and so on. I tracked it down and found out, that the problem is the content of $_POST. Vars are doubled, Strings corrupted. Absolutely absurd. I have no idea where to search for the reasons.

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
I wasn't aware you could use = instead of echo (? =$_SERVER['PHP_SELF'] ?). Try making an even simpler HTML/PHP example and see if the problem exists there. Then you can incrementally build your HTML/PHP back up to the point where it is breaking. Example: ?php print_r($_POST); ? html head /head

Re: [PHP] Post-Vars doubled / corrupted

2005-12-15 Thread Aaron Koning
Hi Sabine, Its been my experience that you need square brackets after the input checkbox name for PHP to see an array. This page discusses that: http://www.evolt.org/article/Storing_form_array_data_to_MySQL_using_PHP/18/60222/ Change your code to the following and give it a try. ul id=colors