Mr. R Posted April 19, 2007 Share Posted April 19, 2007 Hey. Im creating a guestbook and im gonna have a simple admin panel with it. I want the admin to login and be able to change the look of the guestbook. I will create a simple form that the admin will fill out in order to change different parts of the guestbook, eg Text Colour, Background colour... The problem is that i have no idea how to put the values from the form into my css file. Can someone give me some help with this please? Thanks! Max. Link to comment https://forums.phpfreaks.com/topic/47794-solved-guestbook-admin-panel/ Share on other sites More sharing options...
per1os Posted April 19, 2007 Share Posted April 19, 2007 style.php <?php // style.php header('content-type:text/css'); // let the browser know this is a css file include('config.php'); // or however the values are going to be stored ?> body { color: <?php print $mainTextColor;?>; } Simple as that. Link to comment https://forums.phpfreaks.com/topic/47794-solved-guestbook-admin-panel/#findComment-233481 Share on other sites More sharing options...
Mr. R Posted April 19, 2007 Author Share Posted April 19, 2007 Thanks frost110 Link to comment https://forums.phpfreaks.com/topic/47794-solved-guestbook-admin-panel/#findComment-233485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.