note 14295 added to function.serialize.php

From: Date: Wed, 25 Jul 2001 15:57:20 +0000
Subject: note 14295 added to function.serialize.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15822@lists.php.net to get a copy of this message
If you're still having trouble with serialized strings to pass arrays from forms, try avoiding them altogether: <? if ($cmdok) echo urldecode($x[0]) . " " . urldecode($x[1]); ?> <body> <? $x = array("element 0","element 1"); ?> <form name=frm1 method="post" autocomplete=off> <? for($i=0; $i < count($x); $i++) { ?> <input type="hidden" name=x[] value=<? echo urlencode($x[$i]) ?> > <? } ?> <input type=submit name=cmdok value="ok"></td> </form> </body> http://www.php.net/manual/en/function.serialize.php

« previous php.notes (#15822) next »