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( "mailmeat@gmail.com", "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 Quote Link to comment 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:// Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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"); Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.