HTML form

Discussion in 'HTML / PHP / JavaScript / CSS' started by dt, Nov 22, 2004.

  1. dt

    dt

    Is there anything wrong:<this form also can be accessed at http://rugalaxy.com/testform.htm> Not working on my web where as it works perfectly on my local server.


    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>User ID</title>
    </head>

    <form action="./test.php" method="post" name="user"><div class="right"><table summary="" border="0" cellpadding="2" cellspacing="0"><tr><td class="right">User ID:</td><td><input type="text" value="" name="id" size="25"></td></tr><tr><td class="right">Password:</td><td><input type="password" value="" name="pw" size="25"></td></tr><tr><td></td><td><input type="submit" value="LOG IN">&amp;nbsp;<a href="./guest/index.php/" class="topbutton">GUEST</a></td></tr></table></div></form>
    </body>
    </html>




    <?php


    if (empty($id)) {


    echo ("


    <h3 align=\"center\">


    You did not type in your username.


    </h3>


    ");


    exit;


    }





    if (empty($pw)) {


    echo ("


    <h3 align=\"center\">


    You did not type in your password.


    </h3>


    ");


    exit;


    }


    ?>
     
  2. dt

    dt

    Thanks, I changed id to uname both in html and php still the same problem.

    DT
     
  3. dt

    dt

  4. dt

    dt

    Yes, it started working post shoud be POST.
     

Share This Page