Skip to content
Advertisement

Autocomplete working on localhost, but not on server

I have a search formula with an autocomplete function which works just fine on localhost, but as soon as I put it on a remote server it stops working.

I hope you can help me. Here is some Code:

index.php:

JavaScript

ajax.php

JavaScript

auto.js

JavaScript

Advertisement

Answer

You are missing the php in the HTML and if your server isn’t set up for short open tags- may cause an issue, and as shown in the comments – there should not be any html content before the header declaration.

should be:

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