NYCPHP Meetup

NYPHP.org

[nycphp-talk] $_SERVER['PHP_SELF'} not working?

Daniel Convissor danielc at analysisandsolutions.com
Thu Jul 21 21:17:10 EDT 2005


Hey Jeff:

On Thu, Jul 21, 2005 at 08:24:02PM -0400, Jeff Siegel wrote:
>  
> I had a problem with empty action strings (action="") when visitors were
> using some old version of AOL with who-knows-what browser embedded in it.

I generally put the script name in the action="" manually.  But for those 
here who are enthralled with lazy-assed magic, you could do something 
like this, which I alluded to before:

<form method="post" action="<?php echo basename(__FILE__) ?>">

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list