Thread: Html/PHP Forms

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Antigua
    Posts
    21
    Rep Power
    0

    Html/PHP Forms


    hi guys,

    I am trying to do the following..

    1)Create an HTML form that lets a user provide a name.
    2)When the form is submitted, welcome the user by name.
    3)If the name is Joe, change the Welcome.
    4)Done using the GET and POST methods.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    New York
    Posts
    329
    Rep Power
    11
    You do know that there are tons and tons of tutorials online right? Just google 'php form'.

    Heres one I found in 5 seconds.
    http://www.w3schools.com/php/php_forms.asp
    If you think I helped~ me~~

  4. #3
  5. I fail at spelling
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Sep 2003
    Location
    NDAuNjIxMTExLC03OS4xNTU=
    Posts
    3,232
    Rep Power
    1775
    Ok?

    Some code, or problems with the code, or problems about setting up the code would be helpful. Let me answer your question as it was asked.

    1.) Ok created it
    2.) Submitted it, and the name is there
    3.) I only change the welcome message if the name is Joe nobody else. Ok
    4.) I used POST, but GET would work.

    Wow that was an easy one. Read the FAQ about how to ask a question. That is found How To Post A Question or read the FAQ

    Good luck,
    Chad
    I am working now with Symfony2, Twig, Doctrine, Composer, Assetic, and HTML5. Enjoying doing what I do everyday!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Location
    Antigua
    Posts
    21
    Rep Power
    0
    LOL, thx fellows

    Comments on this post

    • Catfish Jones agrees : I've seen a lot of new users take a friendly poke or two the wrong way. Good on ya and welcome.

IMN logo majestic logo threadwatch logo seochat tools logo