0

So I'm getting this error:

enter image description here

Every time I try to use php to dynamically change the value of a url in an href attribute.

<td>
    <a href="DeleteUser.php?email=<?php echo $userList[$i]['Email']; ?>">
        <div class="deleteButton"></div>
    </a>
</td>

I know this error is incorrect as I'm able to use the page fine, and there are no spaces in the url in the code (unless you count the ones inside the php section)

Is this a bug or am I doing something silly?

1 Answer 1

3

There is nothing wrong with the code, the error isn't even a PHP error.

This is simply Netbeans incorrectly assuming that the spaces in your link (ie [space]echo[space]) are actually spaces in the final URL string (which is incorrect HTML)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.