Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    2

    Unanswered: PHP end of file problem

    Hi,

    I have the following code in one of my pages:

    <?php

    //include ('include.php');

    $id = $_GET["id"];

    //Login

    if ($id == "login")
    {
    $user = $_POST["user"];
    $pass = $_POST["pass"];
    ?>
    echo $user . "<BR>";
    echo $pass;

    }
    die ("End of Scipt");
    ?>
    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>echo</title>
    </head>

    <body>
    <meta http-equiv="Content-Language" content="en-gb">
    <form method="POST" action="index.php?id=login">
    <p>UserName <input type="text" name="user" size="20"></p>
    <p>Password <input type="password" name="pass" size="20"></p>
    <p>Remember Me <input type="checkbox" name="C1" value="ON"></p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>

    </body>

    </html>

    No matter what I do with it the error is always on the last line. The a phase Error of some kind.

    Please Help

    Gavin

  2. #2
    Join Date
    Jan 2005
    Posts
    2

    Unhappy Sorry

    My fault. I had two ?> tags

    DOH!!!!!!!!!!

Posting Permissions

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