Echo data if checkbox checked query
Posted: Fri Mar 17, 2006 9:06 am
Hi
I'm still quite new to all this so forgive me if this is really simple - I've also been staring at the problem for waaay too long!
What I've got working so far is a db with job titles and corresponding job descriptions. These job title/descriptions are echoed onto a Current Vacancies page and they appear on an admin page where the client can add a new one, edit or delete existing ones. That all works fine.
What I need to add is a facility where the list of job titles/descriptions on the admin page also has a checkbox next to each item so that if the checkbox is ticked the item appears on the Current Vacancies page. If the checkbox is left unticked then the job doesn't appear rather than the whole lot being listed as it does currently - does that make sense?
I'm a bit lost as to how to get from where I'm at to where I want to be.
Presumably I need to add the checkbox code to the echo bit when the jobs are listed on the admin page. But I'm confused as to what else I need to do.
Thanks for any advice.
I'm still quite new to all this so forgive me if this is really simple - I've also been staring at the problem for waaay too long!
What I've got working so far is a db with job titles and corresponding job descriptions. These job title/descriptions are echoed onto a Current Vacancies page and they appear on an admin page where the client can add a new one, edit or delete existing ones. That all works fine.
What I need to add is a facility where the list of job titles/descriptions on the admin page also has a checkbox next to each item so that if the checkbox is ticked the item appears on the Current Vacancies page. If the checkbox is left unticked then the job doesn't appear rather than the whole lot being listed as it does currently - does that make sense?
I'm a bit lost as to how to get from where I'm at to where I want to be.
Presumably I need to add the checkbox code to the echo bit when the jobs are listed on the admin page. But I'm confused as to what else I need to do.
Thanks for any advice.