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
82d59d1c
Commit
82d59d1c
authored
7 years ago
by
Kriengsak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test get
parent
5a321d42
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
form.html
TestGet/form.html
+21
-0
next.html
TestGet/next.html
+34
-0
No files found.
TestGet/form.html
0 → 100644
View file @
82d59d1c
<!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
This diff is collapsed.
Click to expand it.
TestGet/next.html
0 → 100644
View file @
82d59d1c
<!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
This diff is collapsed.
Click to expand it.
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