On Monday 24 June 2002 22:42, DoL wrote:
> Hi All
>
> I would like to submit a form to call itself, and according to some
> references I could use the $PHP_SELF variable in action attribute of the
> form element in a HTML document
> But it is not working for me, please help.
>
> I have this line of code
> <form action="<?php echo $PHP_SELF; ?>" method="POST" >
>
> in the html source page, I get
> <form action="" method="POST">
>
> Can anyone advice what did I missed here?
> Would this have anything to do with php or/and apache configuration?

You're probably using a newer version of php (4.1.x+). If so, then you need to 
refer to $PHP_SELF as $_SERVER['PHP_SELF']. Read the release notes for your 
version of PHP or read the php.ini or RTFM for more details.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
There but for the grace of God, goes God.
                -- Winston Churchill, speaking of Sir Stafford Cripps.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to