Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

About Build Simple Phone Book

Hi,

I need a exercise about PHP. I think, if I have a subject, this exercise more fun. And yes! I have a subject: "Phone Book".

As the structure of the phone book what I want to do:

-I have only three person.(and than adding one person with html input.) -Each person have to name, kind and phone number.

Things I've done:

-I wrote a one array and than adding 3 array in this array. -Inserted 3 inputs and one submit button. (Inputs contain: Name, kind and phone number.);

I want to:

  • I will write a person name in name input, -I will write a phone number kind (home, gsm etc) in kind input, -I will write phone number in phone number input.
  • I added a new contact showing a new subpage (index.php ?yeni_kayit=evet ) when I clicked the submit button.

Problem: -I said 'I have 3 person'. Yes. But 4th person doesn't seem on the page that I'm adding.

Here's the code: http://snipt.org/Ajaij2

I hope you can understand me :/

What can I do for solve this problem ?