Hi,
Remember the big difference between Javascript, which is a client-side program, whereas PhP is a serverside program. So if the user changes a setting in a form, the page has to be reloaded to take effect with PhP. Then you can just submit the form (To itself for instance) and you can use the name of the radio-button set as a variable name in your script. This goes for your background color too.
<input type="radio" name="set1" value="1"><input type="radio" name="set1" value="2">
After submitting the form you can have either $set1 with value 1 or with value 2.
In the background image you could have:
<select name="background">
<option value ="1">Pink flowers</option>
<option value="2">Red sky</option>
</select>
In te PhP script (After submiiting) you can then use 1 and 2 from the variable $background to determine which background to use.
Hope this helps!
J.