How to redirect localhost php file from webserver php file |
[eluser]JasmineFlower[/eluser]
Hi, I have wen-demo-fence.html file in my localhost.when i submit the form it call fenceServer.php it located in webserver,the values are posted to this fenceserver.php. after finish the database insert process(it works correctly), i need redirect to localhost php file (fence.php) how can i redirect to the localhost php file from web server php file I use header('Location: http://192.168.1.3/skycad/fence.php' ); function in fenceServer.php file, but it display the below error Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/a/y/mayisthree3/html/skycad/fenceServer.php:5) in /home/content/m/a/y/mayisthree3/html/skycad/fenceServer.php on line 6
[eluser]Sudz[/eluser]
Can you post your code from where you are redirecting.
[eluser]Sudz[/eluser]
I am telling to post your code here in forum so that we can see what's the problem.
[eluser]JasmineFlower[/eluser]
thank u for your response i used below code for redirect window. location('http://192.168.1.3/skycad/fence.php'); it works fine, but i don't know this is correct one or not
[eluser]JasmineFlower[/eluser]
hi, this is my code fenceServer.php Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
Welcome Guest, Not a member yet? Register Sign In |