Code: Select all
$a = $_REQUEST['id'];
$b = $_REQUEST['thing'];
$c = array_combine($a, $b);
foreach ($c as $id => $thing):
$mainframe->setUserState( "my_component".$id, $thing );
endforeach;
Post by hjortsberg » Wed Feb 23, 2011 5:12 pm
Code: Select all
$a = $_REQUEST['id'];
$b = $_REQUEST['thing'];
$c = array_combine($a, $b);
foreach ($c as $id => $thing):
$mainframe->setUserState( "my_component".$id, $thing );
endforeach;
Post by hjortsberg » Wed Feb 23, 2011 5:47 pm
Post by hjortsberg » Wed Feb 23, 2011 5:57 pm
Return to “Joomla! 1.5 Coding”
© 2005 - 2024 Open Source Matters, Inc. All Rights Reserved.