Post page with inputting bars("Product Name", "Ad Description", "Photos For Your Ad", "Price", "Email", "PhoneNumber"), "POST button" to submit
define inputs rules and track on back_end
connect "product" database with "POST button"(insert only when inputs satisfied requirement )
require "login in before post"
Task test:
The "post page" contains inputting bars("Product Name", "Ad Description", "Photos For Your Ad", "Price", "Email", "PhoneNumber"), "POST button" to submit
"POST button" verify login_in condition and reject to post when _SESSION[username] is empty.
2.1 back_end verify "Product Name", "Price", "Email" empty and reject with alert(All fields with * are required)
2.11 "Price", "Email", "Product Name" input length limited by ("Email" <= 35, "Price" <=10, "Product Name" <=25). unable to enter after limit lengh
2.2 back_end verify email must contain "@" , reject with alert(email is not a valid email address')
2.3 image_size > 2MB OR image.end not ("jpg","gif","bmp","jpeg","png") reject by size_checking and end_checking. reject when not satified.
"product" database get inserted by "POST success product" through $insertsql by following format
Contains:
Task test:
The "post page" contains inputting bars("Product Name", "Ad Description", "Photos For Your Ad", "Price", "Email", "PhoneNumber"), "POST button" to submit
"POST button" verify login_in condition and reject to post when _SESSION[username] is empty.
2.1 back_end verify "Product Name", "Price", "Email" empty and reject with alert(All fields with * are required)
2.2 back_end verify email must contain "@" , reject with alert(email is not a valid email address')
2.3 image_size > 2MB OR image.end not ("jpg","gif","bmp","jpeg","png") reject by size_checking and end_checking. reject when not satified.
"product" database get inserted by "POST success product" through $insertsql by following format