Scripts.com - Get the best scripts NOW!
HotScripts.com - Over 10 web rings.
more links...
Ron Paul 2008 - Hope for America
    
Index    News    Downloads    E-Mail me    Forum  
    

SELECT-POPULATOR.PHP

I find that when developing input forms, adding select tags is one of the most tedious tasks. This is especially true if they have to remember the values assigned to them. Realizing this, I wrote this function to facilitate things. Here is an example:

<select name="name" onclick="document.form_name.submit();">
<?
$test = array(
array("1", "one"), array("2", "two"), array("3", "three"),
array("4", "four"), array("5", "five"));

select_populator($test, "3");
?>
</select>





see also :  form-handler.php, form-handler.asp, params.php, params.asp
select-populator.php, select-populator.asp, select-value-set.js
javascript-cookies.js, javascript-get-variables.js