You are here: Re: PHP email form not working « PHP Programming Language « IT news, forums, messages
Re: PHP email form not working

Posted by alice on 01/06/07 20:06

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

 

Navigation:

[Reply to this 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

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