+ 4
Header not working
I am using 000webhost for my webhosting and before 1 week my websites php header function did not working..... Does enyone know a solution for this
12 odpowiedzi
+ 3
1. Sorry, if I not understud you.
2. Are you shure, that <<url direction>> i your header is valid http href/link(like http://yoursite.000webhost.com/some_path/redirection_page.php ) ?
3. Is the redirection header the first output in your php code? if not, redirection will not work. It's very important to place redirection header befour all of your output.
+ 3
Hey M.A.Sunera Madanperuma i seem not to understand your question clearly is the header a php file? have you called it via php?... Please detail your issue clearly...
+ 3
what are you using location header for?
+ 3
if you want to redirect to site google.com, when user tap on button,
use <input type='button' onclick='location.href="http://google.com";'>
and browser load google page
+ 2
thank you I'll try 3rd
+ 2
M.A.Sunera Madanperuma , show your code, plz. and type, where it's not working(on SoloLearn playground or on php host)?
+ 2
php host
+ 2
type your code here. first 10 lines
+ 2
to redirect when click form button.
+ 1
<?php
header("Location:url direction");
?>
is not working
+ 1
it is quite big.you can see website on
sunerablog.comxa.com
the error is on profile.php
The next button did not work.
and also in index + button did not work
+ 1
thanks