Reply to Re: PHP email form not working

Your name:

Reply:


Posted by Michael Austin on 01/06/07 21:59

alice wrote:

> Actually, as it turns out, my ISP is using PHP 4.3 and hers, the one
> where this code does not work, is using php 4.4. Should I still try the
> code your talking about, would it make any difference? We also
> discovered that other php mail/form code that she had on her ISP that
> was working the day before, has suddenly stopped working, but we
> haven't changed anything ourselves.
>
> Michael Austin wrote:
>
>>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
>
>

It has to do with the register_global settings in the php.ini file. If you are
deploying this to multiple servers - I would include it as you really do not
know what the setting is going to be from server to server [for a given ISP].

--
Michael Austin.
Database Consultant

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация