标题位置与godaddy linux主机不能正常工作

时间:2015-06-15 13:37:33

标签: php html5

我在godaddy上托管了我的网站,但是标题(位置:)工作不正常。我的意思是它根本不执行。虽然它在其他主机站点和localhost中运行正常。请帮帮我吗?

<?php
if(!isset($_POST['submit'])) 
{
header("Location:index.html");
exit;
}

else if(isset($_POST['submit']))
{
$first_name = $_POST['firstname'];
$last_name = $_POST['lastname'];
$email = $_POST['email'];
$category = $_POST['category'];
$enquiry = $_POST['enquiry'];

$to = 'contact.vstudy@gmail.com';
$subject = 'Enquiry';
$msg = "First name: $first_name\n <br />" .
"Last name: $last_name\n<br />" .
"Email: $email\n<br />" .
"Category: $category\n<br />" .
"Enquiry: $enquiry.\n<br />";
mail($to, $subject, $msg, 'From:' . $email);
?>

1 个答案:

答案 0 :(得分:0)

显而易见的答案是您在网址中没有协议:

header("Location:www.vstudy.in");

应该是

header("Location: http://www.vstudy.in");