blasterstudios
Technical User
I'm trying to setup a checkbox that varies depending on the value of that row in the table.
Here's what i have:
Here's what i have:
Code:
<input
type="checkbox"
name="<?php
if($row_getopenjobs['status'] == "1"){
?>makeworking<?php
} else { ?>makewaiting<?php
} ?>"
id="<?php
if($row_getopenjobs['status'] == "1"){
?>makeworking<?php
} else {
?>makewaiting<?php
} ?>"
value="<?php
if($row_getopenjobs['status'] == "1"){
?>2<?php
} else { ?>1<?php
} ?>"
onClick="if(this.checked) this.form.submit();">
<?php if($row_getopenjobs['status'] == "1"){
?>Work in Progress<?php
} else {
?>Waiting for Information<?php } ?>