Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP] HTML Form/ Priority
#1
Hello,

I created a HTML form, with a drop down list of "priority levels". These include 'High', 'Medium', 'Low'. When the user submits the form, it displays the info in a table below the form.

What I want to do is when a user selects a priority level, and fills in the rest of the form, and submits it, it will display the correct priority level image. For example, 'High' priority has a "red" dot. 'Medium' a "yellow" dot, and 'Low' a "blue" dot.

I thought about doing something like this...But don't know to implement that into an HTML drop down form.

PHP Code:
if($priority == 1)
{
    echo 
"<img src='images/high.png' alt='High' title='High'>";
}
elseif(
$priority == 2)
{
    echo 
"<img src='images/medium.png' alt='Medium' title='Medium'>";
}
elseif(
$priority == 3)
{
    echo 
"<img src='images/low.png' alt='Low' title='Low'>";


Thanks
Reply


Messages In This Thread
[HELP] HTML Form/ Priority - by Dutchcoffee - 12-30-2009, 11:21 AM
RE: [HELP] HTML Form/ Priority - by Gaijin - 12-30-2009, 11:37 AM
RE: [HELP] HTML Form/ Priority - by Dutchcoffee - 12-30-2009, 11:58 AM
RE: [HELP] HTML Form/ Priority - by Gaijin - 12-30-2009, 12:07 PM
RE: [HELP] HTML Form/ Priority - by Dutchcoffee - 12-30-2009, 12:13 PM
RE: [HELP] HTML Form/ Priority - by manipulate - 01-02-2010, 02:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP email input form - having trouble getting the form to work... abayindi 4 2,725 03-19-2012, 10:02 AM
Last Post: RainbowDashFTW
  [NEED HELP] PHP Form post, get, echo Đενɨаηсε™ 5 2,069 02-06-2012, 01:16 PM
Last Post: ★Cooldude★
  How to make a form. HB Virus 10 3,628 12-30-2011, 08:03 PM
Last Post: BreShiE
  PHP form creator? Sam 7 2,667 07-13-2011, 04:53 AM
Last Post: Skyset
  HTML&PHP Games. flAmingw0rm 25 4,447 06-04-2011, 07:23 AM
Last Post: Strafeness

Forum Jump:


Users browsing this thread: 1 Guest(s)