regprick Posted April 20, 2009 Share Posted April 20, 2009 <? $name_from = $_REQUEST['name_from'] ; $email_from = $_REQUEST['email_from'] ; $age = $_REQUEST['age'] ; $message = "NAME: ".$name_from."\n"."EMAILED : ".$email_from."\n"."\n"."AGE: ".$age."\n"; mail( "[email protected]", "data submitted", $message, "From: $email_from" ); header( "Location:www.yahoo.com " ); ?> this is my php script, but it is not going to the location given; can anyone help.... please please Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/ Share on other sites More sharing options...
alphanumetrix Posted April 20, 2009 Share Posted April 20, 2009 Try putting http:// before it. IE: header("location: http://yahoo.com"); Also, could you tell us where it's going, if that doesn't work? My guess, is it's going to a non-existent directory because you don't have http:// Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/#findComment-814766 Share on other sites More sharing options...
alexweber15 Posted April 20, 2009 Share Posted April 20, 2009 just tried this out, its missing the "http://" if you dont specify the protocol, it assumed its a local path so it will look for a folder called www.yahoo.com Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/#findComment-814770 Share on other sites More sharing options...
regprick Posted April 20, 2009 Author Share Posted April 20, 2009 No, i want all this data to go to the specified mail and then it should show my website... please write the codes and show.. i will not be able to understand otherwise..as am a newbie Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/#findComment-814771 Share on other sites More sharing options...
alphanumetrix Posted April 20, 2009 Share Posted April 20, 2009 No, i want all this data to go to the specified mail and then it should show my website... please write the codes and show.. i will not be able to understand otherwise..as am a newbie um... i'm a little confused as to what you're looking for now? if you are trying to send the people to Yahoo, then just use the code i posted: header("location: http://www.yahoo.com"); Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/#findComment-814783 Share on other sites More sharing options...
regprick Posted April 20, 2009 Author Share Posted April 20, 2009 Thanks a million guys... u rock... muaah muaah Link to comment https://forums.phpfreaks.com/topic/154904-header-is-not-going-to-the-location-specified/#findComment-814790 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.