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 2 of 2

Thread: HTML mainframe

  1. #1
    New Coder
    Join Date
    Mar 2012
    Posts
    52
    Thanks
    2
    Thanked 0 Times in 0 Posts

    HTML mainframe

    When I run my .php locally, the mainframe works perfectly but when I upload it onto my website hosted by hostgator, the mainframe is not working anymore.

    Run in local machine:



    Run in web hosted by hostgator:



    It doesn't show up in mainframe but redirect me to the application form that should be displayed in mainframe:



    I really can't figure out what's wrong with it. Can anyone help please ?
    Provided with the codes below :

    main page.php

    PHP Code:
    <html>
    <
    head>
    <
    title>S3UC Student Application</title>
    </
    head>


    <
    frameset rows="100,*" frameborder="YES" border="0" framespacing="0" 
      <
    frame name="topFrame" scrolling="NO" noresize src="banner.php" >
      <
    frameset cols="148,*" frameborder="YES" border="0" framespacing="0" 
        <
    frame name="leftFrame" scrolling="NO" noresize src="links.php">
        <
    frame name="mainFrame" src="">
      </
    frameset>
    </
    frameset>
    <
    noframes
    <
    body>
    Your Browser doesnt support frames.
    </
    body>
    </
    noframes
    </
    html
    links.php

    PHP Code:
    <HTML><HEAD><TITLE>E-BizLinks</TITLE>
    </
    HEAD>
    <
    BODY>

    <
    TABLE>
      <
    TBODY>
      <
    TR>
        <
    TD vAlign=top>
          <
    TABLE width="100%" bgColor=#0080ff>
            
    <TBODY>
            <
    TR>
              <
    TD><STRONG><FONT color=#fffff><STRONG>Click on the links below to select application form. </FONT></STRONG>
              
    </TD></tr>
            <
    TR>
              <
    TD><A  href="USapplication.php" target="mainFrame"><STRONG>
            <
    FONT color=#ffff00>Application - US </FONT></STRONG></A></TD></TR>
            
    <TR>
              <
    TD><A  href="CNapplication.php" target="mainFrame"><STRONG><FONT color=#ffff00>Application - CN</FONT></STRONG></TD></TR>
            
    <TR>
              <
    TD><A  href="logout.php"><STRONG><FONT color=#ffff00>Logout</FONT></STRONG></TD></TR>
              
    </TD></TR>
            </
    TBODY></TABLE>
    </
    BODY></HTML
    Thanks in advance for helping
    Last edited by VIPStephan; 08-12-2013 at 10:06 AM. Reason: corrected PHP BB tags

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,607
    Thanks
    6
    Thanked 997 Times in 970 Posts
    If I were you I would refrain from using frames altogether. This is a prehistoric coding practice (in WWW time) and does not conform to contemporary approaches (as is using tables for layout but that’s worth another thread). If all you want is to have the same menu appear on all pages then use PHP includes.


  •  

    Posting Permissions

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