You are here: Re: Forms in Php « PHP Programming Language « IT news, forums, messages
Re: Forms in Php

Posted by onefastmustang on 11/16/57 11:29

I am using that exact syntax.. I misspoke before.. POST does not work
either.. The reason I was using GET is that the client wants to be
able to use the back button on the browser without getting the PAGE
EXPIRED page..

my form looks like this..
<input type="checkbox" value= "1" name="roles[]" >
<input type="checkbox" value= "2" name="roles[]" >

The reciveing code looks like this..


$roles = $_GET[roles]. $_POST[roles];


if ($roles) {
$sqls = $sqls. " and profiles.role IN (";
foreach ($roles as $key => $value){
$sqls = $sqls. "$value,";
}
$sqls = substr("$sqls", 0 , -1);
$sqls .= ")";
}

 

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

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