Skip to content

Commit

Permalink
User Register and Login Function Added
Browse files Browse the repository at this point in the history
  • Loading branch information
shashirajraja committed Nov 19, 2019
1 parent 8123949 commit 474a62a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions shopping-cart/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="lib" path="F:/HIT Training/HITsw/MySQLSoftware/mysql-connector-java-5.1.12-bin.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
14 changes: 8 additions & 6 deletions shopping-cart/WebContent/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,18 @@ <h1>Shopping Center</h1>

<!-- Start of Login Form List -->
<div class="products">

<p class="tab" align="center" style="color:brown;" id="message">Enter Login Details</p><br>
<div class="tab" align="center">

<div style="margin: 5px">

<form action="adminlog" method="post">
Username: <input type="text" name="username"style="font-size: 15px;font-weight: normal;" placeholder="Enter Email-Id"><br/><br/>
Password: <input type="password" name="password"style="font-size: 15px;font-weight: normal;" placeholder="Enter Password"><br/><br/>
Login As: <select name="usertype" style="font-size: 16px;">
<option value="Customer">Customer</option>
<option value="Admin">Admin</option>
<form action="./LoginSrv" method="post">
Username: <input type="text" name="username"style="font-size: 15px;font-weight: normal;" placeholder="Enter Email-Id" required><br/><br/>
Password: <input type="password" name="password"style="font-size: 15px;font-weight: normal;" placeholder="Enter Password" required><br/><br/>
Login As: <select name="usertype" style="font-size: 16px;" required>
<option value="customer">Customer</option>
<option value="admin">Admin</option>
</select>
&nbsp;&nbsp;
<input type="submit" value=" Login ">
Expand Down
14 changes: 7 additions & 7 deletions shopping-cart/WebContent/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ <h1>Shopping Center</h1>

<div style="margin: 5px">

<form action="adminlog" method="post">
<form action="./RegisterSrv" method="post">
<table border="0">
<tr><td>Name: </td><td><input type="text" name="username"style="font-size: 15px;font-weight: normal; width:100%"></td></tr>
<tr><td>Name: </td><td><input type="text" name="username"style="font-size: 15px;font-weight: normal; width:100%" required></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td>Mobile No.&nbsp;</td><td><input type="Phone" name="mobile"style="font-size: 15px;font-weight: normal;"></td></tr>
<tr><td>Mobile No.&nbsp;</td><td><input type="Phone" name="mobile"style="font-size: 15px;font-weight: normal;" required></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td>Email Id</td><td><input type="email" name="email"style="font-size: 15px;font-weight: normal;"></td></tr>
<tr><td>Email Id</td><td><input type="email" name="email"style="font-size: 15px;font-weight: normal;" required></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td>PinCode</td><td><input type="text" name="pincode"style="font-size: 15px;font-weight: normal;"></td></tr>
<tr><td>Address</td><td><textarea name="address"style="font-size: 15px;font-weight: normal;width: 100%; height: 80px" required></textarea></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td>Address</td><td><textarea name="address"style="font-size: 15px;font-weight: normal;width: 100%; height: 80px"></textarea></td></tr>
<tr><td>PinCode</td><td><input type="text" name="pincode"style="font-size: 15px;font-weight: normal;" required></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td>Password</td><td><input type="password" name="password"style="font-size: 15px;font-weight: normal;"></td></tr>
<tr><td>Password</td><td><input type="password" name="password"style="font-size: 15px;font-weight: normal;" required></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr colspan="2" align="center"><td>&nbsp;</td><td><input type="submit" name="submit" value="Register"></td></tr>

Expand Down

0 comments on commit 474a62a

Please sign in to comment.