if ( isset($_POST['var_1']) and isset($_POST['var_2']) ) { your code }
----- Original Message ----- From: "Johnny Martinez" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 5:08 PM Subject: [PHP] POST detection > Hi all, > I have a self referring script that $_POST's two times at the beginning. The > problem is that the first time the script comes up those two $_POST vars > aren't being submitted and the webserver complains. > > If I could detect if the vars were passed and if not then skip that would be > great. What's a good trick to detect for the first time? > > Johnny > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php