#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Hillsboro, OR, USA
    Posts
    12
    Rep Power
    0
    Hi.
    I'm new to php, Does anyone know a simple way to require certain fields to be filled in on a php form.
    Is there some type of require comand?

    Is there a good book out there on PHP?

    Thanks
    Tim Miller
    tim@tdm-deesign.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Location
    UK
    Posts
    50
    Rep Power
    15
    I'm not new to php but I wouldn't say I know everything. To the best of my knowledge there is no form validation.

    From what I can tell you have a HTML form which you want to validate. Although it is not a straight forward way it probably could be done.

    Submit the page to a piece of php code which checks the contents of the fields you want filled in. Code:

    if ($fieldname == "") { $notcompleted = true }

    At the end, make the decision as to which page you are redirected too.

    Alternatively, the neater way is to use JavaScript.

    As for the php books as far as I know there are roughly two out and one other to be published soon. I have ordered a book recently 'Core PHP Programming' but I don't know what its like.

    I hope this is the information you were looking for.

    Falcon.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    California
    Posts
    43
    Rep Power
    15
    The book "Core PHP Programming" is a very good book about PHP.
    But you can save yourself the money by visiting the PHP website, because the book is much like a copy of that website.
    Personally I prefer the book though, because it is easier to handle than the website

    Iwan
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    15
    Rep Power
    0
    and where is the website located?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    California
    Posts
    43
    Rep Power
    15
    You can find the website at www.php.net
    Click on documentation

    Iwan
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    15
    Rep Power
    0
    hehe I got you all wrong..
    thought that book existed in
    an online version

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. php programmer required
    By amscomp in forum Hire A Programmer
    Replies: 1
    Last Post: March 17th, 2004, 05:34 AM
  3. Forms - multiple action & required fields!
    By jedi_ralf in forum Beginner Programming
    Replies: 5
    Last Post: February 11th, 2004, 02:40 PM
  4. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo