|
I'm creating a website for the movie theatre in my town. Right now I'm trying to make it easy to change the "Now Playing" and "Coming Soon" movies that are displayed on the homepage.
I'm using a flat-file to store the values for the movie title, review URL, running time, and rating. On the edit page I've been able to have the form show everything that is currently in the flat-file, except for the rating.
On the edit form I have text fields for the title, review, and time, but I have radio buttons for the rating.
Is it possible to take the rating value from the flat-file and have the corresponding radio button selected whenever the edit page is loaded?
I'm thinking that I'll have to do a lot of if and else statements, but I want to make sure there's not another way.
Thanks,
JC2
|