Open sica07 opened 5 years ago
Partea asta: https://github.com/RaduTodor/TestingPHP/blob/ff892669037ff36de21ab8cc38fa0e67f735b7bc/public/editPage.php#L54-L79 se poate scrie si ca:
<input type="radio" name="gender" id="gender" value="male" tabindex="6" <?php if($_SESSION['gender'] === 'male'):?>checked<?php endif?>> Male<br> <input type="radio" name="gender" id="gender" value="female" tabindex="6" <?php if($_SESSION['gender'] === 'female'):?>checked<?php endif?>> Female<br> <input type="radio" name="gender" id="gender" value="other" tabindex="6" <?php if($_SESSION['gender'] === 'other'):?>checked<?php endif?>> Other<br>
Partea asta: https://github.com/RaduTodor/TestingPHP/blob/ff892669037ff36de21ab8cc38fa0e67f735b7bc/public/editPage.php#L54-L79 se poate scrie si ca: