RE: [PHP] Result in the same page

From: Date: Sat, 18 Jan 2003 14:31:12 +0000
Subject: RE: [PHP] Result in the same page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132090@lists.php.net to get a copy of this message
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:ezequiel@mibbva.com.ar] Sent: Saturday, January 18, 2003 6:11 AM To: php-general@lists.php.net 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

« previous php.general (#132090) next »