Re: question about displaying select and radio button

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<?php
$pcontactnumber = isset($_POST["pcontactnumber"]) ?addslashes($_POST["pcontactnumber"]):0;
?>
<select name="pcontactnumber">
<option value="09" <?=$pcontactnumber == "09"?'selected="selected"':''?>>09</option>
<option value="07" <?=$pcontactnumber == "07"?'selected="selected"':''?>>07</option>
</select>

<?php
$gender = isset($_POST["gender"]) ?addslashes($_POST["gender"]):'';
?>
<input type ="radio" name="gender" value="Male" <?=($gender=='Male') ?'checked="checked"':''?>>
<input type ="radio" name="gender" value="Female" <?=($gender=='Female')? 'checked="checked"':''?> >





-- 
Best Regards

Eng. T. Kaneshalingam, AMIE(SL)
Project Manager,

E-commerce & Content Services
LankaCom Services (Pvt) Ltd
65C, Dharmapala Mawatha,
Colombo 07.
Sri Lanka.
E - kanesh@xxxxxxxxxxxx
M - +94 777227960
T - +94 112437545
F - +94 112437547
W - www.lankacom.net
       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux