Skip to content

Commit c6295c8

Browse files
authored
Merge pull request #5 from devnetkc/Part-11-Get-and-Post
🎉📝 Part 11 get and post start && updated readme
2 parents 49f1147 + 1eaf7a0 commit c6295c8

File tree

5 files changed

+66
-30
lines changed

5 files changed

+66
-30
lines changed

.wakatime-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PHP F2B Part 10 Superglobals
1+
PHP F2B Part 11 Get & Post Tutorial

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@ This is my code from following along with the php videos and training exercises
44
Developer: Ryan Valizan
55

66

7-
## PHP Front to Back
7+
## Sources
8+
### PHP Front to Back
89
<https://www.youtube.com/playlist?list=PLillGF-Rfqbap2IB6ZS4BBBcYPagAjpjn>
10+
11+
### Git repository on GitHub
12+
<https://github.com/devnetkc/lrnPHP>
13+
14+
### Project test url
15+
<https://lrnlab.vnetkc.com>

index.php

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,42 @@
66
<head>
77
<meta charset="UTF-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
<title>System Info</title>
9+
<title>Get &amp; Post Requests</title>
1010
<link rel="stylesheet" href="css/style.min.css">
1111
</head>
1212
<body>
1313
<div class="container">
1414
<h1>$_SERVER Examples</h1>
1515
<p>Project repository and changes tracked on <a rel="nofollow" target="_blank" href="https://github.com/devnetkc/lrnPHP" title="lrnPHP PHP Front to Back repository on GitHub">GitHub.</a></p>
16-
<h2 class="pt-2">Server &amp; File Info</h2>
17-
<?php if ($server): ?>
18-
<ul class="list-group">
19-
<?php foreach ($server as $key => $value): ?>
20-
<li class="list-group-item">
21-
<strong><?php echo $key;?>: </strong>
22-
<?php //echo $value; ?>erased for security purposes
23-
</li>
24-
<?php endforeach; ?>
25-
</ul>
26-
<?php endif; ?>
27-
<h2 class="pt-2">Client Info</h2>
28-
<?php if ($client): ?>
29-
<ul class="list-group">
30-
<?php foreach ($client as $key => $value): ?>
31-
<li class="list-group-item">
32-
<strong><?php echo $key;?>: </strong>
33-
<?php echo $value; ?>
34-
</li>
35-
<?php endforeach; ?>
36-
</ul>
37-
<?php endif; ?>
16+
<div class="row">
17+
<div class="col-12-sm col-6-md col-4-lg col-3-xlg">
18+
<div class="container ml-3 my-card">
19+
<form>
20+
<div class="form-group">
21+
<label for="formInputEmail">
22+
Email address
23+
</label>
24+
<input type="email" class="form-control" id="formInputEmail" aria-describedby="emailPrivacyNotice" placeholder="Enter email">
25+
<small id="emailPrivacyNotice">We'll never share your email with anyone else</small>
26+
</div>
27+
<div class="form-group">
28+
<label for="formInputPassword">
29+
Password
30+
</label>
31+
<input type="password" class="form-control" id="formInputPassword" placeholder="password">
32+
</div>
33+
<div class="form-group">
34+
<input type="checkbox" class="form-check-input" id="formInputCheck1">
35+
<label class="form-check-label" for="formInputCheck1">Select checkmark value</label>
36+
</div>
37+
<button type="submit" class="btn btn-secondary">Submit</button>
38+
</form>
39+
</div>
40+
</div>
41+
<div class ="col-12-sm col-6-md col-8-lg col-3-xlg">
42+
43+
</div>
44+
</div>
3845
</div>
3946

4047
</body>

src/css/_custom-variables.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
$red: #A54657;
2-
$blue: #397D83;
3-
$yellow: #F7EE7F;
2+
$blue: #515d7d;
3+
$light-blue: #5dc8dd;
4+
$yellow: #eaae5c;
45
$orange: #F1A66A;
56
$pink: #F47C74;
67
$green: #39C047;
8+
$white: #e4ebe4;
9+
$dark-purple: #322b46;
710
/* did it find this */
8-
$primary: $blue;
9-
$secondary: $pink;
11+
$primary: $yellow;
12+
$secondary: $light-blue;
1013
$success: $green;
11-
$info: $yellow;
14+
$info: $pink;
1215
$warning: $orange;
1316
$danger: $red;

src/css/structure/_body.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,23 @@ h1, .h1 {
33
}
44
h2, .h2 {
55
color:$secondary;
6+
}
7+
8+
body {
9+
background-color:$blue;
10+
color: $white;
11+
}
12+
13+
small {
14+
color: $info;
15+
}
16+
17+
.btn-secondary {
18+
color: $blue;
19+
}
20+
21+
.my-card {
22+
background-color: $dark-purple;
23+
padding: .5rem 1.5rem;
24+
border-radius: .5em;
625
}

0 commit comments

Comments
 (0)