Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
Basic_Registration_form
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thi Thanh Yen Hoang
Basic_Registration_form
Commits
1f2c9964
Commit
1f2c9964
authored
Jun 24, 2016
by
Thi Thanh Yen Hoang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update second commit
parent
2f5862af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
43 deletions
+76
-43
bt.html
+37
-17
javascript.js
+2
-2
stylesheet.css
+37
-24
No files found.
bt.html
View file @
1f2c9964
...
...
@@ -6,24 +6,44 @@
</head>
<body>
<table>
<tr><td>
<form>
<table>
<p>
Register Form
</p>
<tr>
<td></td>
<td><div
id=
"message"
>
</div></td>
</tr>
<tr>
<td
class=
label
>
First Name
</td>
<td><input
type=
"text"
id=
"fname"
placeholder=
"First Name"
value=
""
size=
80%
/>
</td>
</tr>
<tr>
<td
class=
label
>
Last Name
</td>
<td><input
type=
"text"
placeholder=
"Last Name"
id=
"lname"
value=
""
size=
80%
/>
</td>
</tr>
<tr>
<td
class=
label
>
Email
</td>
<td><input
type=
"text"
placeholder=
"Email"
id=
"email"
value=
""
size=
80%
/>
</td>
</tr>
<tr>
<td
class=
label
>
Email Confirmation
</td>
<td><input
type=
"text"
placeholder=
"Email Confirmation"
id=
"cemail"
value=
""
size=
80%
/>
</td>
</tr>
<tr>
<td
class=
label
>
Birthday
</td>
<td>
<input
type=
"text"
placeholder=
"Birthday"
id=
"bday"
value=
""
size=
80%
/></td>
</tr>
<tr>
<td
class=
label
>
</td>
<td><button
onclick=
"return validate();"
>
Register
</button>
</td>
</tr>
</table>
</form>
</td><tr></table>
<form>
<div><p>
Register Form
</p></div>
<ul>
<li><div
id=
"message"
>
</div></li>
<li><div
class=
label
>
First Name
</div>
<input
type=
"text"
id=
"fname"
placeholder=
"First Name"
value=
""
size=
100%
/></li>
<li><div
class=
label
>
Last Name
</div><input
type=
"text"
placeholder=
"Last Name"
id=
"lname"
value=
""
size=
100%
/></li>
<li><div
class=
label
>
Email
</div>
<input
type=
"text"
placeholder=
"Email"
id=
"email"
value=
""
size=
100%
/></li>
<li><div
class=
label
>
Email Confirmation
</div>
<input
type=
"text"
placeholder=
"Email Confirmation"
id=
"cemail"
value=
""
size=
100%
/></li>
<li><div
class=
label
>
Birthday
</div>
<input
type=
"text"
placeholder=
"Birthday"
id=
"bday"
value=
""
size=
100%
/></li>
</ul>
<button
onclick=
"return validate();"
>
Register
</button>
</form>
<script
src=
"javascript.js"
>
</script>
<script
src=
"javascript.js"
></script>
</body>
</html>
javascript.js
View file @
1f2c9964
...
...
@@ -22,8 +22,8 @@ function validate()
}
else
{
if
(
filter
.
test
(
email
)
==
filter
.
test
(
cemail
)
)
{
if
(
alphabeta
.
test
(
firstname
)
==
true
&&
alphabeta
.
test
(
lastname
)
==
true
&&
date
.
test
(
bday
)
==
true
)
{
if
(
email
==
cemail
)
{
if
(
alphabeta
.
test
(
firstname
)
==
true
&&
alphabeta
.
test
(
lastname
)
==
true
&&
date
.
test
(
bday
)
==
true
&&
filter
.
test
(
email
)
==
true
&&
filter
.
test
(
cemail
)
==
true
)
{
alert
(
"Thank for your registering"
);
return
true
;
}
...
...
stylesheet.css
View file @
1f2c9964
form
{
margin
:
auto
;
width
:
70%
;
height
:
40%
;
border
:
1px
ridge
gray
;
border
:
none
;
}
input
{
border-radius
:
5px
;
float
:
right
;
margin-top
:
5px
;
margin-right
:
10px
;
margin-bottom
:
5px
;
position
:
relative
;
margin-right
:
10px
;
margin-bottom
:
5px
;
margin-left
:
25px
;
padding-left
:
5px
;
padding-right
:
5px
;
padding-bottom
:
5px
;
padding-top
:
5px
;
}
button
{
margin-top
:
5px
;
margin-right
:
10px
;
margin-bottom
:
5px
;
margin-left
:
300px
;
margin-right
:
10px
;
margin-bottom
:
5px
;
margin-left
:
25px
;
background-color
:
white
;
border-radius
:
5px
;
}
div
p
{
p
{
border
:
none
;
text-align
:
center
;
font-size
:
24px
;
}
ul
{
list-style-type
:
none
;
margin-top
:
5px
;
margin-right
:
10px
;
margin-bottom
:
5px
;
}
div
.label
{
width
:
15%
;
float
:
left
;
td
.label
{
text-align
:
right
;
margin-top
:
10px
;
margin-right
:
5px
;
margin-bottom
:
10px
;
position
:
relative
;
font-weight
:
bold
;
margin-right
:
5px
;
margin-bottom
:
10px
;
font-weight
:
bold
;
}
table
{
border
:
1px
ridge
gray
;
margin-left
:
20%
;
margin-right
:
20%
;
}
table
table
{
border
:
none
;
margin-left
:
0
;
margin-right
:
0
;
}
#message
{
float
:
right
;
width
:
95%
;
margin-right
:
15px
;
color
:
#000000
;
background-color
:
#F08080
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment