Jump to content

radio button help


roeyhaim

Recommended Posts

Hello

please help me. i dont understand why but in all the radio that this function create i have break between the radio and the text

 

I attached an image that show you what i got...

any idea how to solve this?

<table width="80%" dir="rtl">
<?php
    $i = 0;
    foreach($files as $pName)
    {
        echo "<tr>";
        echo "<td>" . $pName . "</td>";
        echo "<td>";
        echo "<input type='radio' name='pageCode$i' value='$editCode[$pName]' />Edit</td>";
        echo "<td><input type='radio' name='pageCode$i' value='$showCode[$pName]' />show</td>";
        echo "<td><input type='radio' name='pageCode$i' value='' />none</td>";
        echo "</tr>";
        $i++;
    }
?>
</table>

 

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/221088-radio-button-help/
Share on other sites

no...

because when i write it as HTML code (not inside PHP ) its OK

 

this is my css for this page:

 

body, html {
        margin:0;
        padding:10px;
        color: #242424;
    background-color: #EBEBEB;
    background-image: url('../images/page_g.jpg');
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-position: top left;
    font-family: "Times New Roman", arial, sans-serif;
    z-index: -1;
}

a{
    color: black;
    text-decoration: none;
    border-width: none;
}

textarea, select{
    border: 1px solid gray; 
}

input {
    text-align: center;
}

input, textarea{
    width:75%;
    border: 1px solid gray;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px; /* future proofing */
    -khtml-border-radius: 5px; /* for old Konqueror browsers */
}

select {
    width:75%;
    border: 1px solid gray;
}

Link to comment
https://forums.phpfreaks.com/topic/221088-radio-button-help/#findComment-1144955
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.