|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi there,
This is a little hard to explain, but i'll give it a go. What i need to do is have a <select> dropdown with options, eg. HTML Code:
<select name="finish"> <option value="" selected="selected">Select a finish</option> <option value="white">White</option> <option value="black">Black</option> </select> I thought the code would look something like this PHP Code:
Is anyone able to help? |
| Sponsored Links |
|
|
|
|||||
|
I'm not 100% sure what you mean, but if you are using a form, the code from phpforfun will work. If you do not intend on using a form to submit the data, you would need to use JavaScript as well as PHP.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
Do you mean when the user changes selection that the PHP value updates? For that you will need to use AJAX (JavaScript and PHP) or just JavaScript.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP 5 and OOP | Jordan | PHP Tutorials | 2 | 07-17-2008 09:43 AM |
| PHP 4 end of life announcement | Jordan | Programming News | 4 | 08-30-2007 09:55 AM |