Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts

    PHP won't work with Firefox

    Hi Guys...

    I have a web site that uses a little PHP.
    This is the bit that doesn't work.
    PHP Code:
    <?php
    $hmenu
    =join('',file('files/hmenu.txt'));
    ?>


    <?php echo $hmenu ?>
    This is where the display code is:
    Code:
    <tr valign="bottom">
    	<td>
    	    <? echo $hmenu ?> 
    	</td>
    </tr>
    I'm convinced that it is because <? echo $hmenu ?> is within a table.

    I have another php link. NOT inside a table, and that works OK.

    This is not a problem with IE.

    Can anybody advise me ??

    Thanks,
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    PHP Code:
    <?php echo $hmenu ?>
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • Users who have thanked AndrewGSW for this post:

    countrydj (08-07-2012)

  • #3
    Regular Coder
    Join Date
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Hi AndrewGSW
    Many thanks for your reply.

    After I posted my problem I changed to your suggested code and it didn't work.

    Cheers,
    Last edited by countrydj; 08-07-2012 at 03:57 PM.
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club

  • #4
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,477
    Thanks
    63
    Thanked 538 Times in 525 Posts
    Quote Originally Posted by countrydj View Post
    After I posted my problem I changed to your suggested code and it didn't work.
    That depends on what you mean by "didn't work".

    IF you're still seeing <? echo $hmenu ?> in your html then you've not changed the correct part of your php code.

    If you're referring to something else that "didn't work" then you need to tell us more about it

    PHP short tags <? are not enabled on every server (for good reason - .xml files also use <? in them) so you must be prepared to use <?php in all of your php code instead.
    I can't really think of anything to write here now...

  • #5
    Regular Coder
    Join Date
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Hi tangoforce

    Sorry I didn't make myself clearer.

    I changed the tag to <?php echo $hmenu ?> just after I made my first post.

    I normally use IE, but by showing somebody the site, which is:

    http://swarbrick-racing.co.uk

    in Firefox I foud that the top menu didn't work, but the bottom menu, which is NOT inside a table, did work.
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club

  • #6
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,477
    Thanks
    63
    Thanked 538 Times in 525 Posts
    Quote Originally Posted by countrydj View Post
    in Firefox I foud that the top menu didn't work, but the bottom menu, which is NOT inside a table, did work.
    Still not clear..

    Are you saying that CURRENTLY something PHP related is not working?

    OR

    Are you saying that it is a html issue that is / is not currently / previously working?

    If its a html issue then this is the wrong forum. I looked at your source and performed a search for <? and found nothing.
    I can't really think of anything to write here now...

  • #7
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    The links at the top don't work because you have gone overboard on the use of absolute, relative positioning (and using tables for layout!) and there is something sitting above the links preventing them from being clickable.

    Ever wanted to see your page from the computer's perspective? But the attached image won't help you fix your page.
    Attached Thumbnails Attached Thumbnails PHP won't work with Firefox-image-7.jpg  
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #8
    Regular Coder
    Join Date
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Hi AndrewGSW

    How did you do that ????

    You have been a great help.
    I now have something to work on.

    Thanl you.
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club

  • #9
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    How did you do that ????
    It's in FireFox - right click, Inspect Element (Q) and click the 3D View button. I'm not sure if it requires FireBug to be installed.
    Attached Thumbnails Attached Thumbnails PHP won't work with Firefox-image-8.jpg  
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #10
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,477
    Thanks
    63
    Thanked 538 Times in 525 Posts
    Quote Originally Posted by AndrewGSW View Post
    It's in FireFox - right click, Inspect Element (Q) and click the 3D View button.
    Where do I find that? - I'm in Inspect Element (Q) but can't find any 3D button

    Edit:
    Nevermind, I don't have it and according to Mozilla its down to my graphics drivers
    Last edited by tangoforce; 09-09-2012 at 01:03 AM.
    I can't really think of anything to write here now...


  •  

    Posting Permissions

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