Dan Anderson wrote:
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
The only way to do that would be editing the PHP source. That's above
the IQ of any sysadmin who would want to do that.
--
The above message is encr
> Please don't mislead users! That's plain untrue.
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan Anderson wrote:
Be careful when using PHP self. Not all servers support it. If you're
planning on using this script over and over on multiple servers you may
find creating a variable is helpful.
$some_variable = "the_script_name.php";
Then, where you would use PHP_SELF just echo (o
Be careful when using PHP self. Not all servers support it. If you're
planning on using this script over and over on multiple servers you may
find creating a variable is helpful.
$some_variable = "the_script_name.php";
Then, where you would use PHP_SELF just echo (or whatever)
$
For print $PHP_SELF, or $_SERVER['PHP_SELF'] use:
or the shortcur sintax:
(if short_open_tag = On in php.ini)
- Original Message -
From: "Beauford.2005" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Sunday, July 06, 2003 1:43 AM
Subject: [PHP] Forms and PHP_SELF
> Hi,
""Chad Guilette"" <[EMAIL PROTECTED]> wrote in message
000701c0d962$d28fb670$0100a8c0@optimus">news:000701c0d962$d28fb670$0100a8c0@optimus...
> I'm currently working on a project and I've come across a problem which
I'm
> sure has been discussed several times before but I still need some
> assist
IL PROTECTED]]
> Sent: Thursday, May 10, 2001 11:11 AM
> To: 'Chad Guilette'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Forms and PHP_SELF
>
>
>
> surely all you need to do is put the php right at the top, and say
> if (isset($variable) { print this message }
> else {
surely all you need to do is put the php right at the top, and say
if (isset($variable) { print this message }
else {do this
header (); }
i've done that loads of times so the form data goes back to the page, and
once its inserted into the db, it sends a header to redirect.
/sunny
---
8 matches
Mail list logo