Modify this HTML code so that the user is prompted to enter a 4 digit identification number.
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Booking System</title>
</head>
<body>
<h1>Welcome to the Conference Room Booking
System</h1>
<form action="MyServlet">
<input type="submit" value="Identification"
/>
</form>
</body>
</html>
CODE
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Booking System</title>
</head>
<body>
<h1>Welcome to the Conference Room Booking
System</h1>
<form name="form1" action="MyServlet">
<input type="text" name="identification" maxlength="4"
id="indentification" pattern="\d{4}" required/>
<input type="Submit"/>
</form>
</body>
</html>
Welcome to the Conference R" src= "https://media.cheggcdn.com/media/c34/c342de23-ee2b-432d-b0b5-ba4121fc733f/phpffEclx.png" />
Get Answers For Free
Most questions answered within 1 hours.