Skip to content
Advertisement

I’m Trying to Create a search field

I am trying to create a search field in PHP and HTML. My code is not showing any error message, however it doesn’t echo anything. My search page comes up blank.

Here is my PHP code:

JavaScript

And my HTML code from the search form:

JavaScript

Advertisement

Answer

This is wrong:

JavaScript

It needs to be:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement