note 14295 deleted from function.serialize by sniper

From: Date: Tue, 23 Sep 2003 22:38:42 +0000
Subject: note 14295 deleted from function.serialize by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57006@lists.php.net to get a copy of this message
Note Submitter: robinc@sbirmc.ac.uk ---- 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>

« previous php.notes (#57006) next »