Yes, just user $_SERVER['PHP_SELF'] as the action of your form. This will cause the page to call itself. Then you can branch your processing on the existence of a SUBMIT button (or whatever) and handle the query.
I do all my pages this way because it keeps all the code in a single page. It's easier for me to find it that way. =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -----Original Message----- From: Ezequiel Sapoznik [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 6:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Result in the same page It is possible to run a query in php when the user press a button an return the result in the same page? Thanks! Ezequiel -- 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