change dropdown to textbox in php

Discussion in 'Programming' started by kabucek, Jan 8, 2009.

  1. #1
    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
     
    kabucek, Jan 8, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    try like that

    $selectedProductCodeTag="

    <input type='text' name='selectedProd'>

    ';
     
    crivion, Jan 9, 2009 IP