Try this-
<?php if( isset( $_GET['name'] ) && $_GET['name'] == 'john' ) : ?>
// some code
// some code
// some code
<?php endif; ?>
You need to check if $_GET['name']
exists AND if its value is john
.
Try this-
<?php if( isset( $_GET['name'] ) && $_GET['name'] == 'john' ) : ?>
// some code
// some code
// some code
<?php endif; ?>
You need to check if $_GET['name']
exists AND if its value is john
.