change dropdown to textbox in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kabucek
Forum Commoner
Posts: 50
Joined: Thu Sep 04, 2008 2:20 pm

change dropdown to textbox in php

Post by kabucek »

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
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: change dropdown to textbox in php

Post by mattpointblank »

That can't be the whole code, it's not valid. But this is a simple text box:

<input type="text" name="whatever" />
Post Reply