Jump to content

[SOLVED] incrementing by more than 1 at a time


tryingtolearn

Recommended Posts

Is it possible to make this jump in increments of 10 instead of 1 in the dropdown???

I have a feeling Im missing something right in front of me.

 

<?php
echo '<select name="rate">';
$rate = 10;
while ($rate <= 1000) {
echo "<option value=\"$rate\">$rate</option>\n";
$rate++;
}
echo '</select><br />';
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.