Re: [PHP] Posting to oneself

2001-08-29 Thread Alexander Skwar
So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? form action=?php echo $PHP_SELF;? 2. If I have a function on one page called by another, will this resolve correctly? If you

Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer
At 12:07 AM 8/30/01 +0200, you wrote: So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 : Two questions: 1. Can I tell a form to post to itself without specifying the name of the web page? form action=?php echo $PHP_SELF;? I am getting this error: Undefined variable: PHP_SELF --

Re: [PHP] Posting to oneself

2001-08-29 Thread Jason Bell
if you are within a function, try doing this first: global $PHP_SELF; - Original Message - From: John Meyer [EMAIL PROTECTED] To: Alexander Skwar [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 4:15 PM Subject: Re: [PHP] Posting to oneself At 12:07 AM 8/30/01

Re: [PHP] Posting to oneself

2001-08-29 Thread Alexander Skwar
So sprach »John Meyer« am 2001-08-29 um 16:15:07 -0700 : I am getting this error: Undefined variable: PHP_SELF Uh? Uhmm... Is this inside a function? Or is the server running PHP in safe mode (dunno if this has anything to do with it...)? Alexander Skwar -- How to quote:

Re: [PHP] Posting to oneself

2001-08-29 Thread John Meyer
At 03:18 PM 8/29/01 -0700, you wrote: if you are within a function, try doing this first: global $PHP_SELF; Tried that, same error. BTW, FYI: Apache 1.3.20 (Win32) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] Posting to oneself

2001-08-29 Thread Johnson, Kirk
; [EMAIL PROTECTED] Subject: Re: [PHP] Posting to oneself At 03:18 PM 8/29/01 -0700, you wrote: if you are within a function, try doing this first: global $PHP_SELF; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail