SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation using forms with queries

    hi
    i have created one page with registration details in one page and i want to login with the registred username and password in another page (like now we are using general wesite regestration and after that login form).so my problem is how i can send this username and password to the next page.this is my problem.
    below i am giving my code plz send reply
    to that.
    PHP Code:
      <?php
    if(isset($_GET['regform'])==('register'))
    {
        
    //print_r($_REQUEST);
        
    echo "<html><head><title>registration details</title></head><body bgcolor=\"#CC9966\">";
        echo 
    "<h1><center><font color=\"green\">registration details</font></center></h1>";
           echo 
    "<table border=\"1\" align=\"center\">";
        echo 
    "<TR><TD>username</TD><TD>".$_GET['uname']."</TD></TR>";
        echo 
    "<TR><TD>password</TD><TD>".$_GET['pword']."</TD></TR>";
        echo 
    "<TR><TD>Address</TD><TD>".$_GET['address']."</TD></TR>";
        echo 
    "<TR><TD>State</TD><TD>".$_GET['state']."</TD></TR>";
        echo 
    "</table>";
        echo 
    "<br><br><br>";
        echo 
    "<a href=\"login.php\?uname=sunil&pword=sunrise\">
    <center>login here</center></a>"
    ;//here is the wrong i think 
        
    echo "</body></html>";
    }
    ?>
    and how i can compare in another login page with registration form.
    by
    j.sunilkumar
    Last edited by sweatje; Jul 18, 2006 at 09:11. Reason: use PHP tags

  2. #2
    is_empty(2); foofoonet's Avatar
    Join Date
    Mar 2006
    Posts
    1,000
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    duplicate post
    Upgrading to Mysql 5? Auto-increment fields now strict
    use NULL
    Or zero or leave the field name out completely.

  3. #3
    SitePoint Zealot sajjad's Avatar
    Join Date
    May 2005
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use php sessions for that if u need to compare the user name and password


Bookmarks

Posting Permissions

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