Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Leif K-Brooks
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

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Dan Anderson
> 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

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Leif K-Brooks
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

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Dan Anderson
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) $

Re: [PHP] Forms and PHP_SELF

2003-07-05 Thread Alan D'Angelo
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 A

[PHP] Forms and PHP_SELF

2003-07-05 Thread Beauford.2005
Hi, I have a very simple form that searches a MySQL database and I want to be able to have the search appear on the same page as the search. The part that confuses me is how I run the code for the search. Currently I have it in a function and at the top of the

Re: [PHP] Forms and PHP_SELF

2001-05-10 Thread Max Vysotskiy
""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

RE: [PHP] Forms and PHP_SELF

2001-05-10 Thread ..s.c.o.t.t.. [gts]
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 {

RE: [PHP] Forms and PHP_SELF

2001-05-10 Thread Sandeep Hundal
sunny -Original Message- From: Chad Guilette [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 16:07 To: [EMAIL PROTECTED] Subject: [PHP] Forms and PHP_SELF I'm currently working on a project and I've come across a problem which I'm sure has been discussed several times before b

[PHP] Forms and PHP_SELF

2001-05-10 Thread Chad Guilette
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 assistance on it. I have a page with a form whose action is $PHP_SELF so the form and the form action are all in the same pagethis works fine but in t