Question
(Dynamic HTML with javascript with two forms and a server program with PHP, SQLite) A server program creates a website for selling PRODUCTs, including two
(Dynamic HTML with javascript with two forms and a server program with PHP, SQLite)
A server program creates a website for selling PRODUCTs, including two forms (for example showform, realform). Within "showform", AT LEAST a selection for PRODUCTs, one selection or more, for sub-catagory, catagory etc., a text input for user_id, and a button for listing PRODUCTs for selected sub-category etc, a button for buying a selected PRODUCT. When the buy button is clicked the information of the selected PRODUCT is sent to the server program named www.buy_alibaba.com/buy.php with "realform" (i.e. one PRODUCT at a time).
The server program lists data from a PRODUCT database (SQLite) and creates PRODUCT records and inserts them into javascript code. Here is a data format for PRODUCT recordings as:"#name#id#price#sub_catagory#catagory#" A sample for this data format: "#Sata_3_SSD_1TB#product1#6.7# Computer_Hardware_Software# Consumer_Electronics#
There is a "realform" for sending buying information to the server-side. Buying information is listed
as: ?PRODUCT_id= product1&user_id=456 After receiving the buying information on the server-side, the server program checks whether the user_id is recorded then decreases the stock number of that PRODUCT and refreshes all webpage content with updated stocks. If the previous sold PRODUCT is the last one, it will not list in the refreshed page.
Sports & Entertainment / Toys & Hobbies / Gifts & Crafts->Sports
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started