PHP Code:
<input type="radio" <?php if ($status == "Single") echo "CHECKED"; ?> value="Single" name="newstatus" id="newstatus">Single<br>
<input type="radio" <?php if ($status == "In Relationship") echo "CHECKED"; ?> value="In Relationship" name="newstatus" id="newstatus">In a Relationship<br>
<input type="radio" <?php if ($status == "Married") echo "CHECKED"; ?> value="Married" nname="newstatus" id="newstatus">Married<br>
<input type="radio" <?php if ($status == "Divorced") echo "CHECKED"; ?> value="Divorced" name="newstatus" id="newstatus">Divorced<br>
<input type="radio" <?php if ($status == "Swinger") echo "CHECKED"; ?> value="Swinger" name="newstatus" id="newstatus">Swinger<p>
I am adding a little thing to my profile on the website, so people know if someone is avalable or not  .. Can someone please checkout the code above?
Depending on what it extracts from db(that works) it should set the defult. Can you spot the problam?
__________________
Please login or register to view this content. Registration is FREE
NuWeb 10101101
|