PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 12th, 2000, 09:54 PM
tim miller tim miller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Hillsboro, OR, USA
Posts: 12 tim miller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #2  
Old January 13th, 2000, 03:41 AM
falcon falcon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 1999
Location: UK
Posts: 50 falcon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 21 m 33 sec
Reputation Power: 14
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.

Reply With Quote
  #3  
Old January 13th, 2000, 11:52 AM
vdschoor vdschoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: California
Posts: 43 vdschoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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

Reply With Quote
  #4  
Old January 14th, 2000, 01:12 PM
kvack kvack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Posts: 15 kvack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
and where is the website located?

Reply With Quote
  #5  
Old January 14th, 2000, 03:25 PM
vdschoor vdschoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: California
Posts: 43 vdschoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
You can find the website at www.php.net
Click on documentation

Iwan

Reply With Quote
  #6  
Old January 14th, 2000, 05:01 PM
kvack kvack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 1999
Posts: 15 kvack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hehe I got you all wrong..
thought that book existed in
an online version

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP required fields

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap