Suppose each user has a background property. We store the path to the drawing in the $ userbg variable. How to make the user have a background when entering site.ru/?name=user ?

    2 answers 2

     echo "<style> body { background: url(/path/".$userbg."); } <style>"; 
    • Ah, sorry, this is on php - DemoS
    • one
      javascript: body.style.backgroundImage = $ userbg; - ling
     <body> <script> var url=location.search;//получаем всё после знака ? url=url.split('=');//разбиваем строку var color=url[1];//узнаем цвет и дальше.. if(color=='red') document.body.style.background='red'; </script> </body> 

    I advise you to improve for your needs, but here’s the main idea, and just do it better, of course, with authorization rules and server language like php ..