alin19 Posted February 6, 2008 Share Posted February 6, 2008 what i must do to to have the default option : <option value="Toata Luna">Toata Luna</option> selected? <select name="ziua" size=5> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> <option value="Toata Luna">Toata Luna</option> </select> Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/ Share on other sites More sharing options...
pdkv2 Posted February 6, 2008 Share Posted February 6, 2008 <option value="Toata Luna" selected>Toata Luna</option> Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459671 Share on other sites More sharing options...
alin19 Posted February 6, 2008 Author Share Posted February 6, 2008 10x Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459672 Share on other sites More sharing options...
pdkv2 Posted February 6, 2008 Share Posted February 6, 2008 10x Dose it work or not ? Cheers ! Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459673 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 <option value="Toata Luna" selected>Toata Luna</option> Thats invalid code these days. It will work, but it should be <option value="Toata Luna" selected="selected">Toata Luna</option> Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459676 Share on other sites More sharing options...
alin19 Posted February 6, 2008 Author Share Posted February 6, 2008 it works just fine, i would have wished that value of ziua to be: "Toata Luna" but i've solvet it with this: $_POST['ziua']='Toata Luna' Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459677 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 it works just fine I said it would. That doesn't change the fact that its invalid code. Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459681 Share on other sites More sharing options...
pdkv2 Posted February 6, 2008 Share Posted February 6, 2008 <option value="Toata Luna" selected>Toata Luna</option> Thats invalid code these days. It will work, but it should be <option value="Toata Luna" selected="selected">Toata Luna</option> Thanks haku for the correction ! Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459682 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 No worries I'm one of those anal retentive folk when it comes to valid XHTML. I have to suck it up a lot on this forum though, a lot of the code posted in here is ridiculously invalid. But this one was a short easy one to comment on. Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459686 Share on other sites More sharing options...
alin19 Posted February 6, 2008 Author Share Posted February 6, 2008 10x, i have modified that, but i don't see any difference ??? Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459690 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 You wont see the difference. But it makes (that part of) your code valid. What is '10x'? Some new lingo back in the western countries that I'm too old and too far away from to know about? Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459697 Share on other sites More sharing options...
kenrbnsn Posted February 6, 2008 Share Posted February 6, 2008 "10x" is short for "thanks". Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459748 Share on other sites More sharing options...
haku Posted February 6, 2008 Share Posted February 6, 2008 No kidding. Interestingly enough, here in Japan its 3-9. Three is 'san', nine is 'kyuu', which is san-kyuu, which is the Japanese pronunciation of thank you (no 'th' sound in Japanese). Quote Link to comment https://forums.phpfreaks.com/topic/89707-solved-default-value/#findComment-459760 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.