Access to PHP5
Basically I have been trying to do this for a while, and I just need help, or an example would be nice..
I have a form that posts a value, and another page that displays it. Using the echo value.
Here is a snipit what is already waiting for the codes to be posted, in style codes.
body {
background-color:COLOR POSTED HERE;
background-position: POSTION POSTED HERE;
background-repeat: REPEAT OR NO REPEAT POSTED HERE;
background-attachment: ATTACHMENT TYPE POSTED HERE;
background-image:url('IMAGE URL POSTED HERE')
I want to make it so that those codes are only displayed if the form value is not null. If its not filled in I want nothing to show up. Example if the user fills in the color and the repeat then I want (below) to be displayed, and only that:
body {
background-color:COLOR POSTED HERE;
background-repeat: REPEAT OR NO REPEAT POSTED HERE;
I still want the color and repeat to be posted inside of the css codes that are posted.
So lets say the user inputs #CC0000 for background color.
If background color is filled in on the form I want the background color code to show up in the code, if its not filled in I dont want it to show up.
body {
background-color:#CC0000;
I have had many errors, and just need help, I dont have any of my other codes, they were lost in a server crash the night after I created them, lol, but I had backups of everything else.
Or is there even a way to do this?