You are here: Re: Why won't variable echo? « PHP Programming Language « IT news, forums, messages
Re: Why won't variable echo?

Posted by aeg on 10/20/06 20:17

Jerry Stuckle wrote:
> aeg wrote:
> > affiliateian@gmail.com wrote:
> >
> >>Just moved web hosts and noticed that this:
> >>
> >><?php echo "$f"; ?>
> >>
> >>used to work when there was an ?f= in the URL like so:
> >>http://www.mydomain.com/index.html?f=yes
> >>
> >>Now it doesn't at the new host.
> >>
> >>I want to echo out "yes" in the HTML.
> >>
> >>Any ideas?
> >>
> >>TIA.
> >
> >
> > Just at tip, for security reasons you may want to addslashes ie
> > addslashes($_GET['f]) else people could inject into your site.
> >
>
> Addslashes won't do a thing here - except maybe screwup the output he's
> echoing.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================

He's relying on data from the url though, this could be dangerous
unless processed correctly

 

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

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