Removed REQUEST

This commit is contained in:
Laurent Destailleur 2010-08-29 17:55:50 +00:00
parent c326e2697a
commit 688dad64ec

View File

@ -63,7 +63,7 @@ if ($user->societe_id > 0)
* Put here all code to do according to value of "action" parameter
********************************************************************/
if ($_REQUEST["action"] == 'add')
if ($_GET["action"] == 'add' || $_POST["action"] == 'add')
{
$myobject=new Skeleton_class($db);
$myobject->prop1=$_POST["field1"];