Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
Board
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kriengsak
Board
Commits
3bf73d2a
Commit
3bf73d2a
authored
Jan 22, 2018
by
Kriengsak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
82d59d1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
0 deletions
+94
-0
form.html
Week11/TestGet/form.html
+21
-0
next.html
Week11/TestGet/next.html
+34
-0
form.html
Week11/TestInput/form.html
+39
-0
No files found.
Week11/TestGet/form.html
0 → 100644
View file @
3bf73d2a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
test form
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"main.css"
/>
<script
src=
"main.js"
></script>
</head>
<body>
<form
action=
"next.html"
>
First name:
<br>
<input
type=
"text"
name=
"firstname"
value=
"Mickey"
><br>
Last name:
<br>
<input
type=
"text"
name=
"lastname"
value=
"Mouse"
><br><br>
<input
type=
"submit"
value=
"Submit"
>
</form>
</body>
</html>
\ No newline at end of file
Week11/TestGet/next.html
0 → 100644
View file @
3bf73d2a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
Next Page
</title>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
var
getUrlParameter
=
function
getUrlParameter
(
sParam
)
{
var
sPageURL
=
decodeURIComponent
(
window
.
location
.
search
.
substring
(
1
)),
sURLVariables
=
sPageURL
.
split
(
'&'
),
sParameterName
,
i
;
for
(
i
=
0
;
i
<
sURLVariables
.
length
;
i
++
)
{
sParameterName
=
sURLVariables
[
i
].
split
(
'='
);
if
(
sParameterName
[
0
]
===
sParam
)
{
return
sParameterName
[
1
]
===
undefined
?
true
:
sParameterName
[
1
];
}
}
};
var
first
=
getUrlParameter
(
'firstname'
);
var
last
=
getUrlParameter
(
'lastname'
);
$
(
'.results'
).
html
(
first
+
last
)
});
</script>
</head>
<body>
<div
class=
"results"
></div>
</body>
</html>
\ No newline at end of file
Week11/TestInput/form.html
0 → 100644
View file @
3bf73d2a
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
test form
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"main.css"
/>
<script
src=
"main.js"
></script>
</head>
<body>
<form
action=
"next.html"
>
TextData:
<br><input
type=
"text"
name=
"name"
value=
"Test"
><br>
Password:
<br><input
type=
"password"
name=
"password"
><br><br>
<input
type=
"radio"
name=
"gender"
value=
"male"
checked
>
Male
<br>
<input
type=
"radio"
name=
"gender"
value=
"female"
>
Female
<br>
<input
type=
"radio"
name=
"gender"
value=
"other"
>
Other
<br><br>
<input
type=
"radio"
name=
"eat"
value=
"beef"
checked
>
Beef
<br>
<input
type=
"radio"
name=
"eat"
value=
"cat"
>
Cat
<br>
<input
type=
"radio"
name=
"eat"
value=
"rat"
>
Rat
<br><br>
<input
type=
"checkbox"
name=
"vehicle1"
value=
"Bike"
>
I have a bike
<br>
<input
type=
"checkbox"
name=
"vehicle2"
value=
"Car"
>
I have a car
<br><br>
Select your favorite color:
<input
type=
"color"
name=
"favcolor"
value=
"#ff0000"
><br><br>
Birthday (date and time):
<input
type=
"datetime-local"
name=
"bdaytime"
><br><br>
Range :
<input
type=
"range"
name=
"points"
min=
"0"
max=
"10"
><br><br>
<input
type=
"submit"
value=
"Submit"
>
<input
type=
"reset"
value=
"Reset"
>
</form>
</body>
</html>
\ No newline at end of file
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