[nycphp-talk] $_SERVER['PHP_SELF'} not working?
Jeff Siegel
jsiegel1 at optonline.net
Fri Jul 22 08:59:37 EDT 2005
I thought the only good programmer is a lazy programmer.
Does that philosophy not hold anymore?
Jeff
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Daniel Convissor
Sent: Thursday, July 21, 2005 8:17 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] $_SERVER['PHP_SELF'} not working?
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
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list