SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2006
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    change dropdown to textbox in php

    hi @LL,

    i have dropdown box which selects event from our sql database using arrays and php.
    here is the code for the dropdown:




    $selectedProductCodeTag="

    <select name='selectedProd'>

    <option value='eventcode'> Today, event at my place

    </select>


    How to change it into textbox, so users will be able to type in something like:


    01-02-2009

    which will be date of the event,
    and eventcode will be changed to 10-02-2009



    thanks

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    01-02-2009

    which will be date of the event,
    and eventcode will be changed to 10-02-2009
    Is that a typo? or is there some magical +8 days logic to be applied?

    And can you clarify are you talking about dd-mm-yyyy or mm-dd-yyyy?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •