Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72388

Fatal error: Cannot use isset, use null expression

$
0
0

I keep receiving the error:

Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in line 42

This is line 42:

if (isset($_GET['reply_id'] && $_GET['reply_user'])) {

Here's the "entire" part of that code:

<?php
if (isset($_GET['reply_id'] && $_GET['reply_user'])) {
$reply_id = $_GET['reply_id'];
$reply_user = $_GET['reply_user'];
echo '<form action="#" method="post">
<center>
<textarea rows="4" cols="50" maxlength="300" name="comment_box" placeholder="Say something awesome..." Style="width:94%;font-family:helvetica;font-size:14px;">@' . $reply_user . '.</textarea></center>
<center><input type="submit" name="post2" class="post_text" value="Post"></center>
</form>';
}
?>

How do I fix this?


Viewing all articles
Browse latest Browse all 72388

Trending Articles