[PHP] Page detect
Hi all I am just five days new to PHP. When sending an HTML form to a PHP page for handling, can you cause the PHP to detect the page name (like form.htm or form2.htm)? thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Page detect
if you want the name of the page you are on (i.e. index.php) you can use the $PHP_SELF variable.. if you want to know what page you came from you can use the $HTTP_REFERER variable.. just remember to get those variables you have to have php parse the page (so it can't just be a plain html page) jay Kevin P [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I am just five days new to PHP. When sending an HTML form to a PHP page for handling, can you cause the PHP to detect the page name (like form.htm or form2.htm)? thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Page detect
try using $PHP_SELF, this might be what you're looking for rm --- Kevin P [EMAIL PROTECTED] wrote: Hi all I am just five days new to PHP. When sending an HTML form to a PHP page for handling, can you cause the PHP to detect the page name (like form.htm or form2.htm)? thanks Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]