I'm using HTML5 where I use email as
<input type="email" id="txtEmail" name="email" required>
in the servlet page if i use String email=request.getParameter("email");
instead of
String txtEmail=request.getParameter("txtEmail");
will it be any problem??will it be error??plz help..
You have to address the
name
Attribute of your input Elements Serverside. So if you would have<input type="text" name="username" id="userelementid">
then you would still userequest.getParameter("username")