Woot! That worked! Thanks Jason and R'twick! Johnny
-----Original Message----- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 2:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] POST detection On Friday 13 June 2003 05:08, Johnny Martinez wrote: > 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? if ($_POST) { do_something_with_post(); } or if (!empty($_POST)) { do_something_with_post(); } should do. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "Thank heaven for startups; without them we'd never have any advances." -- Seymour Cray */ -- 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