[PHP] Select Box CSS
Hi All, Please apologize for sending this question to PHP forums. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. Thanks, Vamsee
Re: [PHP] Select Box CSS
VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
Why not try a css list? css-discuss for example? On Dec 18, 2007 8:06 PM, Børge Holen [EMAIL PROTECTED] wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Tuesday 18 December 2007 21:16:46 you wrote: Why not try a css list? css-discuss for example? Yes why not? On Dec 18, 2007 8:06 PM, Børge Holen [EMAIL PROTECTED] wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Tue, December 18, 2007 2:06 pm, Børge Holen wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... All the browsers suck. They are all rushing half-baked features to market instead of focussing on quality user experience. Opera just sucks in different ways. No worse, no better. ymmv -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Wednesday 19 December 2007 03:59:11 Richard Lynch wrote: On Tue, December 18, 2007 2:06 pm, Børge Holen wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... All the browsers suck. They are all rushing half-baked features to market instead of focussing on quality user experience. Opera just sucks in different ways. No worse, no better. ymmv lol, the suckiness scale close to tips to the point where it almost f*s up on serverside ;D -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Select box
Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select box to be at the option of the query. Below is part of my code. If someone could help, it would be most appreciated. select name=uname ?php $sqlu=SELECT id,user,name FROM users ORDER BY user ASC; $name_result = mysql_query($sqlu); while($rowu=mysql_fetch_array($name_result)){ echooption value=\$rowu[user]\$rowu[user]/option\n; } ? /select -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Select box
On 18 May 2004 09:06, Brent Clark wrote: Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select box to be at the option of the query. Below is part of my code. If someone could help, it would be most appreciated. select name=uname ?php $sqlu=SELECT id,user,name FROM users ORDER BY user ASC; $name_result = mysql_query($sqlu); while($rowu=mysql_fetch_array($name_result)){ echooption value=\$rowu[user]\$rowu[user]/option\n; } /select Assuming that this form submits to itself, so $_POST['uname'] will be set to the selected value: $selected = @$_POST['uname']; while($rowu=mysql_fetch_array($name_result)){ echo option value=\$rowu[user]\; if ($selected==$rowu['user']) echo ' selected'; echo $rowu[user]/option\n; } Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] select box
Hi, Can I put the selected option of select box later by using php? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] select box
If you want to put the SELECTED option into your select list while you are building the page, use an if statement in the option... ... something like this: OPTION VALUE=1 ?php if ($this==$that) {echo SELECTED; } ? Option 1 OPTION VALUE=2 ?php if ($this==$that2) {echo SELECTED; } ? Option 2 Peter At 02:05 PM 9/9/2002 +0300, you wrote: Hi, Can I put the selected option of select box later by using php? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions [EMAIL PROTECTED] http://www.fourthrealm.com Tel: 519-739-1652 - - - - - - - - - - - - - - - - - - - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select box won't display in Netscape 4.xx
Dear Edwin! Yes, I have had this problem before ... My problem was, that I a line in my style sheets, which could not be solved by NS. (I think it was border?) Yours, Martin I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? - Dipl.-Ing. Martin Schichl SCC Software, Communication Consulting GmbH Co KEG Grottenhofstr. 3, A-8053 Graz Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234 [EMAIL PROTECTED], http://scc.co.at -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Select box won't display in Netscape 4.xx
Did you forget the FORM /FORM tags? Jerry -Original Message- From: Martin Schichl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Edwin Boersma; [EMAIL PROTECTED] Subject: Re: [PHP] Select box won't display in Netscape 4.xx Dear Edwin! Yes, I have had this problem before ... My problem was, that I a line in my style sheets, which could not be solved by NS. (I think it was border?) Yours, Martin I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? - Dipl.-Ing. Martin Schichl SCC Software, Communication Consulting GmbH Co KEG Grottenhofstr. 3, A-8053 Graz Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234 [EMAIL PROTECTED], http://scc.co.at -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] The information contained in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, production, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately. The content of the email is not legally binding unless confirmed by letter bearing two authorized signatures. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Select box won't display in Netscape 4.xx
Hi, I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? Regards, Edwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Select box won't display in Netscape 4.xx
Sounds like a problem with HTML syntax. NS is notoriously fussy and IE remarkably lax. Capture your source and compare against the HTML standard. I'm surprised NS6 is accepting what NS4 is choking on. Happy New Year - Miles PS I'd bet a cup of coffee that a closing tag is missing. At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote: Hi, I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? Regards, Edwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Select box won't display in Netscape 4.xx
check and make sure the you have the correct opening and closing form tags. NS 4.x will choke if you don't have an opening and closing tag. While IE 5, 5.5 and 6 will work fine. Jim - Original Message - From: Edwin Boersma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 31, 2001 3:06 AM Subject: [PHP] Select box won't display in Netscape 4.xx Hi, I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? Regards, Edwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Select box won't display in Netscape 4.xx
Have you double and triple checked to be sure your form elements are nested properly? [EMAIL PROTECTED] wrote: Hi, I'm developing a website for multiple browsers. In Netscape 4.xx (both Win98 and Linux versions), the php-scripts display the select boxes in my forms only as plain text. I cannot make any selections. In other browsers (NS 6 and IE5), it works fine. Anyone seen this behavior before? Regards, Edwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]