//echo "profile pic id = " .$owner ?> <br> <!-- <input type=file name=file value="BROWSE" style="width:220px;box-shadow:2px 2px 2px #aaa;padding:3px 15px 3px 15px;background:black;color:white;border:0;font:bold 13px arial;cursor:pointer" /> --> <input id="buttons" type="button" value="Upload Profile" onclick="document.location='upload_profile1/upload.php'" > </div> </td> </tr> <td style="width:150px;" >Preffered Style:</td> <td style="width:200px;" > <select class="preffered_style" id="prefferedstyle"> <?php $preffered_style = preffered_style_list(); for ($i = 0; $i < count($preffered_style); $i++) { echo "<option value='{$i}' > " . $preffered_style[$i] . " </option>"; } ?> </select> </tr> <tr><td style="width:150px;">Blog Domain:</td> <td style="width:200px;"> <input onclick="lnfnhide()" id="blog_domain" name="t_blo" value="<?php echo $rs["blogdom"]; ?> " type='text' /> </td></tr> <tr><td style="width:150px;">Website:</td> <td style="width:200px;"> <input onclick="lnfnhide()" id="website" name="t_web" value="<?php echo $rs["website"]; ?> " type='text' /> </td></tr>
function get_preffered_style_index($preff_selected) { $preffered_style = preffered_style_list(); for ($i = 0; $i < count($preffered_style); $i++) { if ($preffered_style[$i] == $preff_selected) { return $i; } } }