Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Changing the colour of a webpage based on SQL DB

Guest
May 02, 2007 May 02, 2007
I'd really LIKE (i.e if this is impossible or amazingly hard I won't bother) to have a box or list of colours which when selected will send the hex code to a SQL DB, which will be retrieved by the next page and will change the colour of the page retrieving the SQL data using CSS or whatever, any ideas how I could do this. I've made no effort to try it or anything yet, just wondered if someone could give me some clues or something.

Thanks guys
TOPICS
Server side applications
224
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 02, 2007 May 02, 2007
You don't really need to send it to the database unless you are creating
separate css files for each color. Simply write the value to a session
variable and then call that the following pages. The exact code will depend
upon what server language is being used


--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"slowpoke115" <webforumsuser@macromedia.com> wrote in message
news:f1afsu$m59$1@forums.macromedia.com...
> I'd really LIKE (i.e if this is impossible or amazingly hard I won't
> bother) to
> have a box or list of colours which when selected will send the hex code
> to a
> SQL DB, which will be retrieved by the next page and will change the
> colour of
> the page retrieving the SQL data using CSS or whatever, any ideas how I
> could
> do this. I've made no effort to try it or anything yet, just wondered if
> someone could give me some clues or something.
>
> Thanks guys
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 02, 2007 May 02, 2007
Basically I'm writing a dynamic quiz writer and the colour needs to be specified at the input stage so when people see the quiz it has the colours specified during input so I think I probably would need a database for this.

I'm using PHP and SQL, I can't really write CSS from scratch, I just use all the dreamweaver GUI stuff.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 03, 2007 May 03, 2007
LATEST
session variable
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines