Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is a PHP class. Create a web page with a “nag” counter that reminds users t

ID: 3798154 • Letter: T

Question

This is a PHP class.

Create a web page 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 lls 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.

Explanation / Answer

<table border="0" width="500" align="center" class="test">
       <tr><td>Username</td>
       <td><input type="text" class="demoInputBox" name="userName" value="<?php if(isset($_POST['userName'])) echo $_POST['userName']; ?>"></td>
       </tr>
       <tr><td>First Name</td>
       <td><input type="text" class="demoInputBox" name="firstName" value="<?php if(isset($_POST['firstName'])) echo $_POST['firstName']; ?>"></td>
       </tr>
       <tr><td>Last Name</td>
       <td><input type="text" class="demoInputBox" name="lastName" value="<?php if(isset($_POST['lastName'])) echo $_POST['lastName']; ?>"></td>
       </tr>
       <tr><td>Password</td>
       <td><input type="password" class="demoInputBox" name="password" value=""></td>
       </tr>
       <tr><td>Confirm Password</td>
       <td><input type="password" class="demoInputBox" name="confirm_password" value=""></td>
       </tr>
       <tr><td>Email</td>
       <td><input type="text" class="demoInputBox" name="userEmail" value="<?php if(isset($_POST['userEmail'])) echo $_POST['userEmail']; ?>"></td>
       </tr>
       <tr><td>Gender</td>
       <td><input type="radio" name="gender" value="Male" <?php if(isset($_POST['gender']) && $_POST['gender']=="Male") { ?>checked<?php } ?>> Male
       <input type="radio" name="gender" value="Female" <?php if(isset($_POST['gender']) && $_POST['gender']=="Female") { ?>checked<?php } ?>> Female
       </td>
       </tr>
       <tr>
       <td></td>
       <td><input type="checkbox" name="terms"> I accept Terms and Conditions</td>
       </tr>
   </table>
   <div><input type="submit" name="submit" value="Register" class="btnRegister"></div>
</form>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote