<?php
if(!$sql){
echo 'There has been an Error for Submitting your request. Please Contact the Web Master.';
}else{
echo "Hello ".$name."";
echo '
Thank you';
echo '
Your Request is under process. Our Representative will get in touch with you.';
sleep(5);
echo '';
// header("Location: http://www.widecomindia.com/home.html");
}
You cannot use php to send a http redirect header after you have sent output to the browser.
This is limited by the http protocol.
You will have to use javascript, or the meta refresh method.
JS:
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
jogesh_p
Junior Poster in Training
68 posts since Sep 2010
Reputation Points: 16
Solved Threads: 6