Create a web page using PHP/HTML with a “nag” counter th
You Are Eligible For 15% Discount This Month!
Create a web page using PHP/HTML with a “nag” counter that reminds users to register for the e-commerce site they are visiting. Tell them about all the benefits they will receive as registered users (make something up). Save the counter in a cookie and display a message reminding users to register every fifth time they visit your site. (The message should appear after you refresh the page 4 times). Create a form in the body of the document that includes text boxes for a user’s name and e-mail address along with a Registration button. Normally, registration information would be stored in a database. For simplicity, this step will be omitted from this exercise. After a user fills in the text boxes and clicks the Registration button, delete the nag counter cookie and replace it with cookies containing the user’s name and e-mail address. After registering, display the name and e-mail address cookies whenever the user revisits the site. Ensure that you comment your code appropriately.
Leave a Reply
Want to join the discussion?Feel free to contribute!