Task 199 - Employees Web App

Back to General discussions forum

relativity     2015-08-11 15:16:51

I created the web app and it seems to do everything correctly when I test it, but when I submit it for an answer I get an error saying the list expects three but found two.

Any idea what might be causing the problem?

Here is the site: http://relativity.atwebpages.com/employees/index.php

Rodion (admin)     2015-08-12 07:34:02
User avatar

Hi! Thanks for your message!

What functionality do you use for persisting data between requests? It looks like cookies, yes?

If so then, I'm afraid, problem is that checker unlike browser do not work with cookies (you see it would be hard to support browser-related features - cookies, localstorage etc)... However saving data to file at serverside should do the trick. Database also should work but I remember I had troubles setting it up with atwebpages, though perhaps I do something wrong and have not enough patience...

relativity     2015-08-12 07:52:27

Thanks for your quick reply!

I did use cookies and had a feeling that the checker wasn't able to use them since the error always occurred after the second person was added to the list. I decided to switch to a database to solve the task (although I kept my previous solution for you to see) but wanted to check to be sure there wasn't any other issue that I missed.

And thanks for all your hard work, by the way. I really love this site.

Please login and solve 5 problems to be able to post at forum