-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
157 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Forms Example</title> | ||
|
||
<style> | ||
form { | ||
margin-top: 21%; | ||
font-family: Tahoma; | ||
} | ||
|
||
input[type="text"] { | ||
border: 1px solid #1c1d1f; | ||
border-right: 0px; | ||
padding: 4px; | ||
} | ||
|
||
input[type="submit"] { | ||
background-color: #1c1d1f; | ||
color: white; | ||
border: 0px; | ||
padding: 5px; | ||
margin-left: -5px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<form action="receiver.awp" method="get" align="center"> | ||
<h2>GET Method Example</h2> | ||
<input type="text" name="name" placeholder="Enter your name" /> | ||
<input type="submit" /> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Form GET Example</title> | ||
|
||
<style> | ||
* {font-family: Tahoma} | ||
h2 {margin-top: 21%} | ||
|
||
a { | ||
text-decoration: none; | ||
color: blue; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<center> | ||
<h2>Hello, <% echo(httpRemote()["get_data"]["name"]); %>!</h2> | ||
<a href="/">< Go Back</a> | ||
</center> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
<style> | ||
h1 { | ||
margin-top: 24%; | ||
font-family: Tahoma; | ||
} | ||
</style> | ||
<% | ||
|
||
include("say.awp"); | ||
say("<h1 align=\"center\">Hello, from AnkoWeb!</h1>"); | ||
|
||
%> | ||
<!DOCTYPE html> | ||
<head> | ||
<style> | ||
h1 { | ||
margin-top: 24%; | ||
font-family: Tahoma; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<% | ||
include("say.awp"); | ||
say("<h1 align=\"center\">Hello, from AnkoWeb!</h1>"); | ||
%> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Form POST Example</title> | ||
|
||
<style> | ||
form { | ||
margin-top: 21%; | ||
font-family: Tahoma; | ||
} | ||
|
||
input[type="text"] { | ||
border: 1px solid #1c1d1f; | ||
border-right: 0px; | ||
padding: 4px; | ||
} | ||
|
||
input[type="submit"] { | ||
background-color: #1c1d1f; | ||
color: white; | ||
border: 0px; | ||
padding: 5px; | ||
margin-left: -5px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<form action="receiver.awp" method="post" align="center"> | ||
<h2>POST Method Example</h2> | ||
<input type="text" name="name" placeholder="Enter your name" /> | ||
<input type="submit" /> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Form POST Example</title> | ||
|
||
<style> | ||
* {font-family: Tahoma} | ||
h2 {margin-top: 21%} | ||
|
||
a { | ||
text-decoration: none; | ||
color: blue; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<center> | ||
<h2>Hello, <% echo(httpRemote()["post_data"]["name"]); %>!</h2> | ||
<a href="/">< Go Back</a> | ||
</center> | ||
</body> | ||
</html> |