Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Dropdown options not visible
Old 10-17-2007, 08:05 PM Dropdown options not visible
Novice Talker

Posts: 7
Name: Michael
Trades: 0
Ok I have created a dropdown menu I'm building in my registration form and all of the options appear locally but when published to my web server none of the options I have in my code appear, the code is:

PHP Code:
 <select size="1" name="sexuality">
            <option <?php echo ($sexuality == 'Straight')    ? 'selected' ''?>>Straight</option>
            <option <?php echo ($sexuality == 'Open Minded') ? 'selected' ''?>>Open Minded</option>
            <option <?php echo ($sexuality == 'Bisexual')    ? 'selected' ''?>>Bisexual</option>
            <option <?php echo ($sexuality == 'Gay_Lesbian') ? 'selected' ''?>>Gay_Lesbian</option>
            <option <?php echo ($sexuality == 'Other')       ? 'selected' ''?>>Other</option>
          </select>

Last edited by mikes; 10-17-2007 at 08:06 PM..
mikes is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2007, 08:08 PM Re: Dropdown options not visible
Novice Talker

Posts: 7
Name: Michael
Trades: 0
and if this is'nt correct I'm guessing this drop down menu for the age is wrong too...?

HTML Code:
<select size="1" name="D1" style="color: #000000">
                                    <option selected>18</option>
                                    <option>19</option>
                                    <option>20</option>
                                    <option>21</option>
                                    <option>22</option>
                                    <option>23</option>
                                    <option>24</option>
                                    <option>25</option>
                                    <option>26</option>
                                    <option>27</option>
                                    <option>28</option>
                                    <option>29</option>
                                    <option>30</option>
                                    <option>31</option>
                                    <option>32</option>
                                    <option>33</option>
                                    <option>34</option>
                                    <option>35</option>
                                    <option>36</option>
                                    <option>37</option>
                                    <option>38</option>
                                    <option>39</option>
                                    <option>40</option>
                                    <option>41</option>
                                    <option>42</option>
                                    <option>43</option>
                                    <option>44</option>
                                    <option>45</option>
                                    <option>46</option>
                                    <option>47</option>
                                    <option>48</option>
                                    <option>49</option>
                                    <option>50</option>
                                    <option>50+</option>
                                    </select>
mikes is offline
Reply With Quote
View Public Profile
 
Old 10-18-2007, 03:45 AM Re: Dropdown options not visible
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
What is in html source at your server?
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 10-18-2007, 09:31 AM Re: Dropdown options not visible
Novice Talker

Posts: 7
Name: Michael
Trades: 0
well with the age menu the ages do appear but without the correct php code associated with it, it wont be sent to the mysql database.

html is the only way i can get the drop down menus to display options at the server
mikes is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dropdown options not visible
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49636 seconds with 12 queries