$.post("./ajax.php", { action: "formID", firstname: firstname_val, email: email_val })
The ajax.php file works but only from the homepage etc..
Can anyone suggest why this isn’t going to the file directly in the root?
In other parts of the site it appends the current url eg /page/ajax.php.
Take the dot out from before the slash: