Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2009, 06:23 AM
Registered User
 
Join Date: Dec 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Arrays and CheckBoxes

I am using the new Edition of the book Beginning PHP5. In this book, the author says that we can declare an array like so:

$myArray1= array( "dog"=>"rover", "cat"=>"tom");

this part is fine; however, the author also says that we can still access the elements of the array using indexes, like so: $myArray1[0]. Though I have tried doing this several times, it never works. Is it possible to access the array elements using indexes if we have declared keys in the array?

Secondly, in the section describing checkBoxes, the author says the value attribute contains nothing if the checkbox is not ticked. Thus, when we display, a blank space is printed; however, in my code, when the checkbox is not ticked, and I try to print the value, an error occurs. It would be really great if someone could help solve the issues.

Innovators
 
Old December 12th, 2009, 07:48 AM
Registered User
 
Join Date: Dec 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

Pls someone help me with the doubts...I will be really grateful




Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkboxes in Gridview ramuis78 ASP.NET 2.0 Basics 0 October 11th, 2007 09:55 AM
Multidemmesional Arrays OR arrays gmoney060 Classic ASP Basics 3 November 1st, 2004 03:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.