-
Notifications
You must be signed in to change notification settings - Fork 3
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
Load search upon hitting back arrow #45
Comments
-Add back button that loads search results |
Is this for the add button or the back button? |
Back button to save previous search so it loads results when you hit the back arrow instead of being blank
|
Submit inputs through POST to a file called addAnimal.php In addAnimal.php, check that the post values are set, then prepare the queries:
Then check if there already exists a species of that name($NEW_SPX can be replaced with your POST value):
If there is no existing species with that name, create a new one. Then add the animal to the DB:
|
For the back button, we need to just save the search in the session, then go back and fetch that search.
|
The text was updated successfully, but these errors were encountered: