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
<?php | |
// presence | |
$value = ''; | |
if(!isset($value) or empty($value)) { | |
echo 'fail'; | |
} | |
// string length |
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
<?php | |
if(isset($_POST['submit']) and strlen($_POST['website']) > 0) { | |
$website = htmlspecialchars($_POST['website']); | |
$category = htmlspecialchars($_POST['category']); | |
echo "Hi bud, thanks for submitting <b>$website</b> to the <b>$category</b> category."; | |
} else { | |
echo 'Enter a Website and Category'; | |
} | |
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
<html> | |
<head> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<script src="js/respond.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
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
<html> | |
<head> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<script src="js/respond.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
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
<html> | |
<head> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<script src="js/respond.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
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
Array | |
( | |
[website] => https://www.alfintechcomputer.com/ | |
[category] => Social | |
[submit] => Submit Website | |
) |
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
<pre> | |
<?php | |
print_r($_POST); | |
?> |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML Form Built With Love</title> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> | |
<script src="js/respond.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> | |
</head> | |
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
/* sets the excerpt length */ | |
function customize_the_excerpt_length() { | |
return 30; | |
} | |
add_filter('excerpt_length','customize_the_excerpt_length'); |
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
<?php | |
get_header(); | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); ?> | |
<article class="post"> | |
<h2><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h2> | |
<p class="post-meta"><?php the_time( 'F jS, Y' ); ?> | <a |