MySQL Forums
Forum List  »  PHP

Re: PHP and HTML combo single page for MySQL Record Update
Posted by: Eric Hilding
Date: May 25, 2019 09:37PM

Found a solution:

First in the PHP code:

$showit = $row['showit'];

Then in the HTML section:

<input type="radio" name="showit" value="yes" <?php if ($showit == 'yes') { echo "checked"; } ?>>YES &nbsp;
<input type="radio" name="showit" value="no" <?php if ($showit == 'no') { echo "checked"; } ?>>NO

Options: ReplyQuote


Subject
Written By
Posted
Re: PHP and HTML combo single page for MySQL Record Update
May 25, 2019 09:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.