- Clone the Repository
- Open terminal to the project directory and run command
composer install
- Go to
index.php
file 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_info
table automatically in the database. Though the SQL file is given in theDB
directory. - 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
Home
page 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 Class
that 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.js
file Change the value of this constantconst MINUIT_TO_BLOCK=24*60;
place 1 for one minuit block and likewise. - In the
Report
page 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