Page 1 of 1

drives me crazy!

Posted: Wed Nov 27, 2002 9:41 am
by irene
drives me crazy this stuff! Something I don't understand! And I really think I do something wrong, because people, who configured the server of my host cant be so stupid to let something like this happen:))


So. To make it easy, I wrote a rudimentar script to send email from rudimentar form.

Form:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="newt.php">
<input type="text" name="works">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>


Script:
<?
mail("irina@prowebdesign.ro", "khj", "$_POST[works]");
echo "sent";
?>

Problem:
My host has PHP 4.2.3. Register_globals is off. With this occasion if I try to send form data from some computers - works, but from others - doesn't. The only rule I noticed is that doesnt work fromp comps w/firewalls.

Now, if I put the same script on server w/PHP 4.0.4 changing $_POST[works] to simply $works - everything is fine - works from all comps. Please help me! What is happening???? I suppose I made some mistakes in script or form...THANX

Posted: Wed Nov 27, 2002 10:01 am
by mydimension
is the script sending email from behind a firewall or is it sending email to users that sit behind a firewall? you lost on that part