[Solved] change the css via php [closed]


To sum up the discussions regarding your question:

There (could be) no need to do this serverside. You can read the values of those options via Javascript and change the styles accordingly.

You only need php, if you want to remember those settings for the user in a database or something like that.

It is even easier, if you use jQuery ( ty @ JP Hellemons 😀 ).

Update: try it out here

If you want to store those settings, you could:

  1. store it clientside via cookie or local|session-Storage
  2. send an ajax-request an store it serverside
  3. actually indeed submit the form and process it serverside.

every method has it’s pros and cons, so it depends on you, what you want to do.

3

solved change the css via php [closed]