sandari
-
Posts
29 -
Joined
-
Last visited
Posts posted by sandari
-
-
Thank you.
This works very well.
-
Sorry, code should read:
<?php $Available=1; echo "<label>Currently Available?</label><br /> <input type=\"radio\" name=\"Available\" value=(if($Available==1){echo'checked=\"checked\"'})>Yes <input type=\"radio\" name=\"Available\" value=(if($Available!=1){echo'checked=\"checked\"'})>No"; ?>
-
<p><p>What is wrong with this code?
<?php $Available=1; ... <label>Currently Available?</label><br /> <input type=\"radio\" name=\"Available\" value=(if($Available==1){echo'checked=\"checked\"'})>Yes <input type=\"radio\" name=\"Available\" value=(if($Available!=1){echo'checked=\"checked\"'})>No ?>
Whatever I do I cannot get any value to display in either option.
Selected Suburb Not Displaying Correctly
in PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
Posted
When I run the following code it runs through the entire list of suburbs and only displays the last one rather than the selceted suburb.
What am I doing wrong?