Conditional statement to set value of html form selected attribute

  • Status Completed
  • Budget R100 - R210 ZAR
  • Total Bids 11

Project Description

I have a function that populates the form|select|option field from one MySQL table based on a corresponding field in another table...

I also want to include the select="selected" attribute based on a == operator but this does not seem to work.

please check attached files for code

[url removed, login to view] is the main page

[url removed, login to view] is where I tried to debug using a different method

Get free quotes for a project like this
Completed by:

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online