Web Analytics Made Easy -
StatCounter Eliminate Dropdown - Set default Parameter - CodingForum

Announcement

Collapse
No announcement yet.

Eliminate Dropdown - Set default Parameter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Eliminate Dropdown - Set default Parameter

    I want to eliminate a dropdown that allows the user to set the number of days they want their information posted. The maximum allowed is set in the admin panel and the user can select up to that number. I want to be able to retain all rescords unless they are deleted by the Admin. or account user. This is the current dropdown code:
    Code:
    <select name="auction_period">
                                            <?
    					for($i=1; $i<=$rate["max_period"];$i++)
    					{
    					?>
                                            <option value="<? echo $i; ?>"><? echo $i; ?></option>
                                            <?
    					}
    					?>
                                          </select>

  • #2
    OK so... remove that form element and replace it with a hidden input field with the value you want hardcoded in it.

    Comment


    • #3
      Thank Fumigator
      I'm still pretty green with PHP/MySql but I took a shot here. Am I close??

      Code:
      <input name="auction_period" type="hidden" option value="1000">

      Comment


      • #4
        Assuming "1000" is the value you want, then you are absolutely spot on! Except for that word "option" you have in there, it's not needed.

        Comment


        • #5
          Works perfectly Fumigator! Thank you!!!

          Comment

          Working...
          X