53 users online (0 members and 53 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 5
  2. Replies: 0
  3. HTML Frame problem    Forum: HTML Forum
    Replies: 4
  1. #1
    Matrix's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Location
    Palics(SCG)
    Posts
    1

    Question HTML / PHP Target Problem

    Aloha...
    I've been working on my warcraft3 clan's website.I created a working user login (form) for the admins,it works but it loads the page into my menu (leftframe)...If annyone has an idea how to tell the "core.php" to open the admin's welcome screen in the mainframe(plain old target="mainframe" does not work!),I woud be very happy! The URL : http://www.palic.net/~korni/frame.htm It is still under construction!!! the design(i've made it my self!) is ready but the pages are not complete yet.....thank you very much!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Urm.. I see nothing but black in your page.
    Rather than latch onto this old post, please start a new thread to avoid confusion.
    In fact, Ill split it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    welcome to the forums

    You need to move the target attribute to the form tag itself.

    replace:
    HTML Code:
    <form action="core.php" method="post">
            <div align="center"><font color="#666666">User: </font> 
              <input type="text" name="username" />
              <br />
              <font color="#666666">Password: </font> 
              <input type="password" name="password" />
              <br />
              <input type="submit" target="mainframe" name="Login" value="Login" />
            </div>
          </form>

    with:
    HTML Code:
    <form action="core.php" method="post" target="mainFrame">
            <div align="center"><font color="#666666">User: </font> 
              <input type="text" name="username" />
              <br />
              <font color="#666666">Password: </font> 
              <input type="password" name="password" />
              <br />
              <input type="submit" name="Login" value="Login" />
            </div>
          </form>
    Also note the original code said "mainframe" which I changed to "mainFrame" to match your frame name.

    Dave

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Quote Originally Posted by Dave
    Also note the original code said "mainframe" which I changed to "mainFrame" to match your frame name.
    thought: Try saying that 3 times fast



Tags for this Thread