doctorbill
asked on
PHP Radio Issue
<input type="radio" name="units" id="cms" value="cm" class="validate[condRequir ed[im_size _port]] text-input"
<?php if ($row_artgaladd[artgal_siz eUnit] == "cm") { ?>
checked="checked" <?php } ?> />
cm
</label>
<input type="radio" name="units" id="inches" value="inches" class="validate[condRequir ed[im_size _land]] text-input"
<?php if ($row_artgaladd[artgal_siz eUnit] == "inches") { ?>
checked="checked" <?php } ?> />
inches
can someone please tell me what is wrong with the script above
The radio buttons do not reflect the statue dof the current radio checked, even though the database entries are correct
<input type="radio" name="units" id="cms" value="cm" class="validate[condRequir
<?php if ($row_artgaladd[artgal_siz
checked="checked" <?php } ?> />
cm
</label>
<input type="radio" name="units" id="inches" value="inches" class="validate[condRequir
<?php if ($row_artgaladd[artgal_siz
checked="checked" <?php } ?> />
inches
can someone please tell me what is wrong with the script above
The radio buttons do not reflect the statue dof the current radio checked, even though the database entries are correct
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ray
Can you explain this:
Take the "checked" attribute out and try it again, using the client input instead of pre-populating the HTML with what might be bad code.
Do I take out the following:
<?php if ($row_artgaladd[artgal_siz eUnit] == "cm") { ?>
checked="checked" <?php } ?> />
Can you explain this:
Take the "checked" attribute out and try it again, using the client input instead of pre-populating the HTML with what might be bad code.
Do I take out the following:
<?php if ($row_artgaladd[artgal_siz
checked="checked" <?php } ?> />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry all
Thanks very much for the valuable information
I have to confess I made an error. I was editing 2 php pages at once , both with very similar names. The one I was editing was not the one I was checking in my browser, hence any changes were not being reflected in the browser page
The script I posted is actually working fine
Once again - sorry foe being such a twit
Thanks very much for the valuable information
I have to confess I made an error. I was editing 2 php pages at once , both with very similar names. The one I was editing was not the one I was checking in my browser, hence any changes were not being reflected in the browser page
The script I posted is actually working fine
Once again - sorry foe being such a twit
ASKER
Solution already there
Valuable information
Valuable information
ASKER