what your going to want to do is a switch statement heres a the base structure from a login i had minus the code between as an example.

PHP Code: 
<?php
if (isset ( $_GET ['do'] )) {
    switch (
$_GET ['do']) {
        
        case 
'logout' :
        
//code for ?do=logout
        
break;
            
        case 
'view' :
       
//code for ?do=view
       
break;
        
        case 
'register' :
        
//code for ?do=register
        
break;
        
        default :
        die ( 
'Invalid Command' );
        break;
    }
 }
?>

That will allow you to do page.php?do=submit and it will execute whatever code in in the submit code area.
th3fallen Reviewed by th3fallen on . PHP Approval/Deny help Hey erybody! I'm making a CMS and right now I'm working on the avatars. When they upload their avatars, it automatically sets their approved status to false, because i want to be able to approve/deny them in the acp. This is what I have for the Approve/deny portion, since i already got the uploading script all taken care of. $picture = mysql_query("SELECT * FROM images WHERE approved='false'"); echo "<form action='approve.php?do=submit' method='post'>" while($result = Rating: 5