Folks,
1. Out of these 2 samples, which one you prefer ?
[code]
<input type=”radio” name=”tos_agree” id=”tos_agree_yes” value=”yes”>
<label for=”tos_agree_yes”>Yes:</label>
<input type=”radio” name=”tos_agree” id=”tos_agree_no” value=”no”>
<label for=”tos_agree_no”>No:</label>
<br>
[code]
<label for=”tos_agreement”>Agree to TOS or not ?</label>
<select name=”tos_agreement” id=”tos_agreement”>
<option value=”yes”>Yes</option>
<option value=”no”>No</option>
</select>
2.
Once had a drop down issue. Can’t exactly what it was. It was solved by adding a blank dropd own option value at the top. What wasn’t working ? How wasn’t working ? I can’t remember. Either php had difficulty reading user input or the drop down was not showing any options. And so, I had to add a blank value at the top.
So, something like this wasn’t working …
[code]
<label for=”tos_agreement”>Agree to TOS or not ?</label>
<select name=”tos_agreement” id=”tos_agreement”>
<option value=”yes”>Yes</option>
<option value=”no”>No</option>
</select>
Added a blank value, at somebody’s advice, to get it to work. I think it was something like this, if I remember correctly:
[code]
<label for=”tos_agreement”>Agree to TOS or not ?</label>
<select name=”tos_agreement” id=”tos_agreement”>
<option value=” “>Select here</option>
<option value=”yes”>Yes</option>
<option value=”no”>No</option>
</select>
Or, maybe it was something like this:
[code]
<label for=”tos_agreement”>Agree to TOS or not ?</label>
<select name=”tos_agreement” id=”tos_agreement”>
<option value=” “></option>
<option value=”yes”>Yes</option>
<option value=”no”>No</option>
</select>
Was this a php or html 5 issue ? Can anybody fugure ?
All I remember slightly that there was a blank value.
I been going through my php files to find that particular file to jog my memory but I failed to find it.
Can you folks explain to me if a blank value is required or not ? What is the benefit/disaster of adding it and how should the blank value be added ? Show me an example.
Thank You