Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have this form on my site that it was working until recently and that I have use for years. All of a sudden it stops working on all my sites. It works by the user arriving at the page “contact.php” where the user fills up the form and press send. Here is the code for that page in a simple form.
[syntax="html"]<html>
<head>
<title>SITE TITLE</title>
</head>
<body>
<form action="ContactSent.php" method="post">
Enter Name: <input name="name" type="text" id="name">
<input type="submit" name="Submit" value="Send">
</form>
</body>
</html>Code: Select all
<html>
<head>
<title>SITE TITLE</title>
</head>
<body>
<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>
<input type=hidden name="ip" value="<?php echo $ipi ?>">
<input type=hidden name="httpref" value="<?php echo $httprefi ?>">
<input type=hidden name="httpagent" value="<?php echo $httpagenti ?>">
<?php
$myemail = "USER@DESTINATIONYOUCHOOSE.COM";
if (!isset($email))
echo "$ip" ;
$todayis = date("l, F j, Y, g:i a") ;
$subject = "EMAIL SUBJECT";
$message = "
Name: $name \n
$ipi \n
$todayis [EST]
";
$from = "From: $myemail\r\n";
if ($myemail != "")
mail($myemail, $subject, $message, $from);
?>
message sent
</body>
</html>Name: WHATEVER NAME IT WAS ENTERED
Instead I just get
Name:
Going deeper in details, all the sites are hosted at different host companies.
Thanks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]