Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. if ($show_profile_form)
  2. {
  3. echo <<<_END
  4.  
  5. <!-- CLIENT-SIDE VALIDATION -->
  6.  
  7. <!-- Changing the input types to the appropriate type and adding sensible character restrictions -->
  8.  
  9. <form action="set_profile.php" method="post">
  10. Update your profile info:<br>
  11. First name: <input type="text" maxlength = "40" name="firstname" value="$firstname"required>
  12. <br>
  13. Last name: <input type="text" maxlength = "40" name="lastname" value="$lastname"required>
  14. <br>
  15. Number of pets: <input type="number" min="0" max="128" name="pets" value="$pets"required>
  16. <br>
  17. Email address: <input type="email" maxlength ="50" name="email" value="$email"required>
  18. <br>
  19. Date of birth: <input type="date" name="dob" value="$dob"required>
  20. <br>
  21. <input type="submit" value="Submit">
  22. </form>
  23. _END;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement