JS Lab 3
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
// empty().
|
||||
// isset().
|
||||
// is_numeric().
|
||||
if (
|
||||
!empty($_POST['grade']) &&
|
||||
isset($_POST['grade']) &&
|
||||
is_numeric($_POST['grade'])
|
||||
) {
|
||||
$grade = $_POST['grade'];
|
||||
print_r($grade);
|
||||
}
|
||||
else {
|
||||
echo 'Grade not provided and/or was not numeric!';
|
||||
}
|
||||
|
||||
// Strip Tags.
|
||||
$text = 'Hello <b><em>world!</em></b>';
|
||||
echo $text;
|
||||
echo strip_tags($text);
|
||||
Reference in New Issue
Block a user