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 trialIsmael Miber
1,626 PointsPlease, Review my solution
this is my solution :
4 Answers
Carlos Alberto Del Cueto Carrejo
13,817 PointsI really like your solution to the problem, there are two things that you could change, one is to refresh the info as to not have all the list of students that you input and just show one student per submition. Good solution to the duplicate person problem, I would have added a student ID or to the JSON, and made sure only one would show up, or maybe a list with usernames then search by username. Well done
Carlos Alberto Del Cueto Carrejo
13,817 PointsYes , you got it. Since you are also taking some PHP in the future you will be able to mix both languages and accomplish this ;)
Ismael Miber
1,626 Pointsthank you for your words and your interesting <3
William Titterton
10,960 Pointsthis is my solution if you're interested http://codepen.io/wtitterton/pen/vXYVvp
Ismael Miber
1,626 PointsIsmael Miber
1,626 Pointsthanks for your comment <3 .
i will describe to you what i understood from your comment :
First, make search with name and when the program find two student with the same name .. the program show up input dialog to make user input the last name of student or any info about it like age or Id .
Second, not to show all student with the same name and make search with ID of the student .
right ? or i translated your comment in wrong way .
Tawanda Musabaika
10,522 PointsTawanda Musabaika
10,522 PointsHi wouldn't it be good to keep the program listing all the students with a particular name if maybe you just know the person's name but forgot other details about them, then when you get that list you can verify which one you really want.