SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS into PHP

  1. #1
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    CSS into PHP

    Well I have read all the past examples and well I just can't get my CSS to be used by PHP... on my 2nd page

    I shall explain - I have a form which uses the CSS no problems, I then have a switch command which then directs you to a new page depending on your answer to the select option - but that new page doesn't use the CSS although the code is identical!!! Also the input info is sent to a database and stored etc..

    I have used:

    echo "<LINK REL=\"stylesheet\" href=\"styles.css\" type=\"text/css\">\n";

    I have tried changing it to styles.php and it still doesn't work...

    Is there a way in which I can have the page to load css first? But also as I am using header function to go to the next page (haven't found how else you can do this...!) I cannot use a header function prior to this otherwise my script comes up with an error?

    If you need to view to understand

    http://roadrunner.crxnet.com/usersurvey/page1.php

    is the url - although this will only be up and running until 6pm GMT

    My next option (I think) is to hand code the css into the beginning of the form hopeing that itll work?

    Any help much appreciated

    Thank you

    Sarah

  2. #2
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    feeling very daft now....

    I have just resolved my own problem..... I \" the HTML reference to the css in the HTML part also hence why it didn't work... doh..

    signing off feeling silly

    Sarah




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
  •