You are here: Re: form (?) problem « PHP Programming Language « IT news, forums, messages
Re: form (?) problem

Posted by luke on 07/26/05 03:31

Doh! Noticed a bug already.

> Change the following:
> Into this:
>
> $A="OR symb LIKE . "$_POST['A'];
> $u="OR symb LIKE . "$_POST['u'];
> $B="OR symb LIKE . "$_POST['B'];

Sorry, you'll have to change that suggestion, if the 'switch' is to work as
intended.

Instead, change to:

if ($_POST['A']) { $A="OR symb LIKE . "$_POST['A']; }
if ($_POST['u']) { $u="OR symb LIKE . "$_POST['u']; }
if ($_POST[B]) { $B="OR symb LIKE . "$_POST['B']; }

And so on for the remaining variables

 

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

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