HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Dynamic Select
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
blackeyed



Joined: 21 Nov 2007
Posts: 1

PostPosted: Wed Nov 21, 2007 2:51 am     Dynamic Select Reply with quote

I have PHP code (very raw one) that dynamically creates list of drop down of a select. And another query gives me result of which one option to be selected. Sometimes this second query returns the result sometimes it doesnt.
Is there any way out by which i can change the background color(green) of the selected (from the query) otherwise it should remain normal (white).
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Thu Nov 22, 2007 5:33 pm     Reply with quote

Yeah, use a 'echo' to write your <body> tag, and put echo '<body bgcolor="'.$_POST['chosen'].'">';
Something like that.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial