PHP header(Location: ...): Force URL change in address bar PHP header(Location: ...): Force URL change in address bar php php

PHP header(Location: ...): Force URL change in address bar


Try changing:

header("Location : blabla")                ^                |           (whitespace)

To

header("Location: blabla")


Well, if the server sends a correct redirection header, the browser redirects and therefore "changes the url". It might be a browser issue, then.I don't know if it has anything to do with it, but you should not send a relative url in the location header ("HTTP/1.1 requires an absolute URI as argument to ยป Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. ", http://php.net/manual/en/function.header.php), and "location" must be capitalized, like:

header('Location: http://myhost.com/mypage.php');


In your form element add data-ajax="false". I had the same problem using jquery mobile.