Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($show_profile_form)
- {
- echo <<<_END
- <!-- CLIENT-SIDE VALIDATION -->
- <!-- Changing the input types to the appropriate type and adding sensible character restrictions -->
- <form action="set_profile.php" method="post">
- Update your profile info:<br>
- First name: <input type="text" maxlength = "40" name="firstname" value="$firstname"required>
- <br>
- Last name: <input type="text" maxlength = "40" name="lastname" value="$lastname"required>
- <br>
- Number of pets: <input type="number" min="0" max="128" name="pets" value="$pets"required>
- <br>
- Email address: <input type="email" maxlength ="50" name="email" value="$email"required>
- <br>
- Date of birth: <input type="date" name="dob" value="$dob"required>
- <br>
- <input type="submit" value="Submit">
- </form>
- _END;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement