March 6, 201115 yr Warning: Cannot modify header information - headers already sent by (output started at /home/saziew/public_html/sazies-designs.cz.cc/php/strip.php:627) in /home/saziew/public_html/sazies-designs.cz.cc/php/submit.php on line 241 what is causing this any ideas submit.php header("location: $host/$dir/$goto"); var.php <?php $host = "http://www.sazies-designs.cz.cc"; $dir = "php"; $goto = "contactus.php"; ?> i cant show to much of the code as it was given to me Edited March 6, 201115 yr by lee sands
March 6, 201115 yr Warning: Cannot modify header information - headers already sent by (output started at /home/saziew/public_html/sazies-designs.cz.cc/php/strip.php:627) in /home/saziew/public_html/sazies-designs.cz.cc/php/submit.php on line 241 what is causing this any ideas submit.php header("location: $host/$dir/$goto"); var.php <?php $host = "http://www.sazies-designs.cz.cc"; $dir = "php"; $goto = "contactus.php"; ?> i cant show to much of the code as it was given to me means your outputting something before headers are being sent, try this if(!headers_sent()){ //If headers not sent do php way header("location: $host/$dir/$goto"); }else{ /**Else Redirect using javascript**/ echo "<script type='text/javascript'>window.location='$host/$dir/$goto'</script>"; } Edited March 6, 201115 yr by webdesigner93
March 6, 201115 yr thanks that worked np, curious though who gave u the script? hope u did not pay for it considering the developer should have checked this
March 7, 201115 yr Author yes very true but the sercurity of it is weak then i have 6 diffent scprits to scure it
Create an account or sign in to comment