SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get html code css inside php file?

    Here mentioned my html code .When i opened the below code then it can redirected to the new php page as quiz_start.php .
    Now my requirement is i want to set the background color quiz_start.php in present html page .For example i am setting the body background color as green color in html file this should be effected to php file and when i run this file this page navigated to quiz_start.php page and body backgoround color of my quiz_start.php page will change.
    How can get my requirement.please help me.


    Code:
    <html>
    <head>
    <title>Quiz2</title>
    <style type="text/css">
    body{
    background-color: #0F0;
    }
    </style>
    </head>
    <body>
    <table align="center">
    <tr><td align="center"><div name="proprofs" id="proprofs" height="300" width="440" style="overflow-x: hidden;" >
    <script type="text/javascript">window.location="http://localhost/murali_update/quiz_start.php?quizid=19";</script>
    </div></td></tr>
    </table>
    </body>
    </html>
    Thanks in Advance.


    Thanks & Regards
    Sravani

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2009
    Posts
    406
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's lame solution, but it will surely work. You can just pass color as variable, so your URL will look like:

    http://localhost/murali_update/quiz_...d=19?COLOR=XXX

    I guess you know what needs to be done in quiz_start.php file
    Daniel, Helpdesk Leader
    Hosting24.com Web Hosting - First class web hosting services.
    Reseller Hosting - Provide unlimited disk space and bandwidth


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •