|
Posted by Michael Austin on 01/06/07 16:02
Rik wrote:
> alice wrote:
>
>>I found this code for making a php email form for a web site. It works
>>fine on my ISP, but not on my friends...could it be that my ISP uses
>>php5, I know that hers does not, so I assume it's php4. Is there
>>anyway to tell? Here's the code. It sends me email fine, but when
>>it's on her ISP, it says it sent the mail, but nothing goes through.
>
>
> Look for register_globals and the $_POST array.
Here is a piece of code I found a long time ago that would extract all of the
get/post'ed variables if register_globals is off. Place this at the top of your
code...
if (!empty($_GET))
{
extract($_GET);
}
else if (!empty($HTTP_GET_VARS))
{
extract($HTTP_GET_VARS);
}
if (!empty($_POST))
{
extract($_POST);
}
else if (!empty($HTTP_POST_VARS))
{
extract($HTTP_POST_VARS);
}
--
Michael Austin.
Database Consultant
[Back to original message]
|