- Clone the Repository
- Open terminal to the project directory and run command
composer install - Go to
index.phpfile replace the portion of the code with your database information$config=[ 'host'=>'', 'db_name'=>'xpeedstudio', 'username'=>'root', 'password'=>'' ]; - After first run the project will create the
buyer_infotable automatically in the database. Though the SQL file is given in theDBdirectory. - All done. Open the project in the browser.
- There are two web pages in the project
- Home ( the form )
- Report ( all the data with date range filter)
- In the
Homepage the form takes the values according to the guided validation from the instruction doc - There are two types of validation
- From front end with JS that validate the text format of each input.
- From Back End with php
Validate Classthat checks the required, text min-max length.
- The user can place one form submit one time within 24 hrs. For testing you can change the time duration in
custom.jsfile Change the value of this constantconst MINUIT_TO_BLOCK=24*60;place 1 for one minuit block and likewise. - In the
Reportpage there is a horizontally scrollable table with the data of submitted form. - The table data can be filtered by placing data range in the top right input filed.
Finished