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
PHP - Radio Buttons not working
Old 12-07-2008, 02:27 PM PHP - Radio Buttons not working
Average Talker

Posts: 21
Name: Hal
Trades: 0
I have created script for three choices using radio buttons.
They show up fine in a browser but clicking one of them doesn't change which one is highlighted.

php code:

<div id="pnlMp3" style="border-color:Transparent;
height:24px; width:168px;z-index: 114; left: 8px;
position: absolute; top: 264px">

<span id="lblMp3" style="z-index: 100; left: 64px;
position: absolute; top: 0px">MP3:</span>
<span style="z-index: 101; left: 96px;
position: absolute; top: 0px"><input id="rbMp3" type="radio"

name="mp3" value="Y" /></span>
<span style="z-index: 102; left: 120px;
position: absolute; top: 0px"><input id="rbMp3" type="radio"

name="mp3" value="N" /></span>
<span style="z-index: 104; left: 144px;
position: absolute; top: 0px"><input id="rbMp3" type="radio"
name="mp3" value="D" checked/></span></div>


outcome:
http://hoco.oxyhost.com/gps/radio.php

I'd sure appreciate some help on this. Thanks!
hoco is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2008, 04:52 PM Re: PHP - Radio Buttons not working
Mattmaul1992's Avatar
Ultra Talker

Posts: 486
Name: Matt
Trades: -1
The z-index of div panel1 is 116 while your buttons are at 104 therefore that div is in front of your form rendering the form useless although you are able to see them because your div is transparent. I'm sure if you set a bg color for that div you'd see that color instead of your form. So just change your HTML around a bit.
__________________
PHP Code:
$talkupation++; 

Please login or register to view this content. Registration is FREE
- Free IPB forum hosting (releasing today!!!), no ads, free modifications
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
Old 12-10-2008, 04:18 PM Re: PHP - Radio Buttons not working
Experienced Talker

Posts: 41
Name: Jabis Sevon
Location: Tampere, Finland
Trades: 0
One addition: ID is a unique property - you shouldn't give id="rbMp3" to every one of them, could cause multiple different problems... and yeap your Z-indexes are messed up, so fixem and you'll profit :>
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
jabis is offline
Reply With Quote
View Public Profile Visit jabis's homepage!
 
Old 12-13-2008, 03:58 PM Re: PHP - Radio Buttons not working
Average Talker

Posts: 21
Name: Hal
Trades: 0
I changed my HTML around a bit like you said, and all is now well. Never even thought about z-indexes. Thank you Matt and Jabis
hoco is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP - Radio Buttons not working
 

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.13718 seconds with 12 queries