Hi,

Wondering if there were an easier way of duplicating and or multiplying “NUMBER”, would like to create a list allowing user to select up to 200…

I feel foolish if I have to type ==> “NUMBER”, <== 200 times :)

"options" => array ("1", "2", "200",),

Any suggestions would be much appreciated!

Here is a simple code for that

<?php
echo "<select name = 'myoptions'>";
	echo "<option value = ''>Select One</option>";
	for($counter = 1; $counter <= 200; $counter++)
	{
		echo "<option value ='".$counter."'>$counter</option>";
	}
echo "</select>";

?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.