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
0 parents
commit d437993
Showing
3 changed files
with
60 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Forms</title> | ||
</head> | ||
<body> | ||
<form> | ||
<label for="planet">Fav. Planet</label> | ||
<input id="planet"> | ||
<button type="submit">Submit</button> | ||
</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,24 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Query Strings</title> | ||
</head> | ||
|
||
<body> | ||
<?php if (isset($_GET['name'])) : ?> | ||
<?php | ||
echo $_GET['name']; | ||
echo ' '; | ||
echo $_GET['lastname']; | ||
?> | ||
<?php endif; ?> | ||
<br /> | ||
<a href="name.php?name=Petrus">Petrus</a> | ||
<a href="name.php?name=Loser">Loser</a> | ||
<a href="name.php?name=Thomas">Thomas</a> | ||
<a href="name.php?name=Guyy">Guyy</a> | ||
|
||
|
||
</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,18 @@ | ||
<!DOCTYPE HTML> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Say Hello</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<!-- | ||
'isset()' allows us to check if an index in an array exists, before trying to use it | ||
--> | ||
<?php if (isset($_GET['name'])) : ?> | ||
<h1>Hello, <?php echo $_GET['name']; ?></h1> | ||
<?php endif; ?> | ||
|
||
</body> | ||
</html> |