SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    USA
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question I'm stock, please help

    Hello everyone, I'm new to php and i'm trying to follow kevin's tutorial, but I'm stock in this particular section, everything seem to be right but is not working right..

    Bellow you can see and test the url i have the file under
    http://nbrec.com/alopez/welcome3.html

    // this is my html file called welcome3.html
    <html>
    <title></title>
    <body>
    <form action="welcome3.php" method="get">
    First Name: <input Type="text' name ="firstname"/><br />
    Last Name: <input Type="text' name ="lastname"/><br />
    <input type="submit" value='Go' />
    </form>

    </body>
    </html>

    //====================================
    //and this is the file being invoked
    <?php
    $firstname= $_GET['firstname'];
    $lastname= $_GET['lastname'];
    echo "Welcome to our Website, $firstname $lastname !";
    ?>

    /* I was told that i'm missing the parameters on the php file, but i thought that firstname and lastname were the parameters..and that php would automatically add the parameters on my new url/*

  2. #2
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use method="post" and $_POST instead.

  3. #3
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have type="text' when it should be type="text"

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    USA
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you but i tried that before and i just did again, but is not working...
    go to this page to test it and you'll see what i mean.
    i know that is the parameters but i don't know, how to do it..

    http://nbrec.com/alopez/welcome3.html

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    USA
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok,, i think i got it..
    it was the " instead of the ' although the tutorial has it w/ a single quote...
    thank you

  6. #6
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, glad you got it fixed.


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
  •