Completed

Conditional statement to set value of html form selected attribute

This project was successfully completed by phpraza for R150 ZAR in a day.

Get free quotes for a project like this
Employer working
Completed by:
Project Budget
R100 - R210 ZAR
Completed In
1 day
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

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