flawless script

From: Date: Wed, 28 May 2003 10:25:24 +0000
Subject: flawless script
Groups: php.general 
Request: Send a blank email to php-general+get-149204@lists.php.net to get a copy of this message
hi guys, how does everyone usually go about posting within a script ? i usually contain everything i need to do for a script within the same script without the need for a seperate file for posting like so switch ($_POST['action']) { case 'insert': insert into db break; case 'edit': edit content break; } to keep the files to a minimum is this cool ? should i especially check for $_POST when inserting to make it more robust ? or someone could go action=insert without actually posting first

« previous php.general (#149204) next »