You are here: Re: [PHP] Variables not available « PHP « IT news, forums, messages
Re: [PHP] Variables not available

Posted by Dotan Cohen on 11/09/61 11:26

On 9/12/05, Ryan A <Ryan@coinpass.com> wrote:
>
> On 9/12/2005 9:00:46 AM, Dotan Cohen (dotancohen@gmail.com) wrote:
> > I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get
> > variables are not available in my scripts. For instance, in
> > file.php?foo=bar the variable $foo is empty. Same thing for variables
> > passed in forms (get or post), which is how I came across this.
> >
> > What could cause this? How could I repair it? Thanks.
>
>
> Have you checked your register_globals?
>

The 'problem' was in fact register globals. I did a little research
and decided to leave it off. So I'm accessing the variables like
$_POST['foo']. Thanks.

Dotan
http://lyricslist.com/lyrics/artist_albums/332/mccartney_paul.php
McCartney, Paul Song Lyrics

 

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

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