Re: FN-FORUM: Problem with $PHP_SELF
date posted 24th January 2006 12:36
Hi Tom,
On 24 Jan 2006, at 11:50, Tom Allen wrote:
> It's probably just the case that MacOS' webserver doesn't implement it
> properly.
I think you are right, its something to do with the way PHP is set up
on Mac OS, but I've Googled and haven't been able to find out how to
force it to give a value to $PHP_SELF.
> If you're posting a form back to itself, leaving the action
> attribute as "" should work just fine anyway...
I'm quite keen not to have to change any actual code between the
testing server and the production server if I can possibly avoid it.
>
> Or is it the missing semicolon from the code you posted? ;)
I don't think so. I think its valid to leave out the semicolon when
using a single variable like this. Well, I've been doing it this way
for years, and as I say, it works on the production server
Best regards,
Ray
------------------------------
Ray McGinty Information Design
Specialising in web application development,
e-commerce and design for print.
http://www.rmid.co.uk
Listed on the National Business Link Consultants Register