Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US1: Output error messages through $_SESSION #14

Open
BorislavZlatanov opened this issue Mar 4, 2015 · 1 comment
Open

US1: Output error messages through $_SESSION #14

BorislavZlatanov opened this issue Mar 4, 2015 · 1 comment
Labels

Comments

@BorislavZlatanov
Copy link
Member

Related user story:
As an administrator, I can add new resources to the system.

Task:
On the page for adding resources, right now we are outputting error messages through 'echo'. We instead need to save them to $_SESSION, redirect from the form processor file back to the form and output error messages there (if any).

@BorislavZlatanov
Copy link
Member Author

I was thinking recently about this and whether it would be better to submit the form through AJAX. That way all the inserted values in the form will be preserved (the user wouldn't have to type them again if there are errors) and we can just insert at the top of the page whatever error messages get returned by the server.

@BorislavZlatanov BorislavZlatanov changed the title Output error messages through $_SESSION US1: Output error messages through $_SESSION Mar 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant