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

Thread: Signup

  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Signup

    I know it isn't finished but I will finish I was testing something and it didn't work. I probally made a stupid mistake so it would be great if someone could help me.. ~Thanks

    Code:
    <?php
    $title = "Signup";
    include("top.php");
    ?>
    
    
    <div id="content">
    <span>Signup</span>
    
    
    <p>
    <form method="POST" action="signup.php?action=signup">
                 Username:<br> <input type="text" name="username" size="20" maxlength="15"><br>
                 Password:<br> <input type="password" name="password" size="20" maxlength="15"><br>
          Verify Password:<br> <input type="password" name="verpassword" size="20" maxlength="15"><br>
                    Email:<br> <input type="text" name="email" size="20" maxlength="15"><br><br>
    
    
    Note: Your ip will be logged so please do not make multiple accounts<br><br>
    <input type="submit" name="action" value="Signup"></form>
    
    
    
    <?php
    IF ($action == "submit"){
    echo $username;
    echo $password;
    echo $email;
    }
    ?>
    
    
    </div>
    
    <?php
    // signup stuff here
    ?>
    
    
    <?php
    include("bottom.php");
    ?>

  • #2
    New Coder
    Join Date
    Jan 2005
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I might need $username = $_POST['usermame']; but it worked the other way before.....
    Last edited by Fashong; 06-16-2005 at 01:11 AM.

  • #3
    New Coder
    Join Date
    Jan 2005
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any help??

  • #4
    Regular Coder
    Join Date
    May 2005
    Posts
    563
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Try this...

    PHP Code:
    <?php
    $title 
    "Signup";
    include(
    "top.php");
    ?>


    <div id="content">
    <span>Signup</span>


    <p>
    <form method="POST" action="signup.php">
                 Username:<br> <input type="text" name="username" size="20" maxlength="15"><br>
                 Password:<br> <input type="password" name="password" size="20" maxlength="15"><br>
          Verify Password:<br> <input type="password" name="verpassword" size="20" maxlength="15"><br>
                    Email:<br> <input type="text" name="email" size="20" maxlength="15"><br><br>
    Note: Your ip will be logged so please do not make multiple accounts<br><br>
    <input type="submit" name="submit" value="Signup"></form>

    <?php
    if (isset($_POST['submit']){
    echo 
    $_POST['username'];
    echo 
    $_POST['password'];
    echo 
    $_POST['email'];
    }
    ?>

    </div>

    <?php
    // signup stuff here
    ?>


    <?php
    include("bottom.php");
    ?>

  • #5
    New Coder
    Join Date
    Jan 2005
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alright, I thought so. Anyway my way would work to IF ($action == "submit") {
    stuff here
    }

    I always thought this way was better...

  • #6
    New Coder
    Join Date
    Jan 2005
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You know what I didn't do right lol.. IF ($action == 'Signup'){

  • #7
    Regular Coder
    Join Date
    May 2005
    Posts
    563
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Your way would only work with global variables on, the default is off so it is better to do it the way I showed you.


  •  

    Posting Permissions

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