[thelist] PHP/NN4: Using <?echo $PHP_SELF?> vs. <?$PHP_SELF?>

Bill Haenel bill at webmarketingworx.com
Wed Jan 30 11:07:07 CST 2002


Thanks to all for the replies. I definitely screwed that one up, but the
complete issue has turned out to be related to a query string on the page
where the form is. IE seems to use the string as part of the URL for the
action, but NN does not. Fixed it by adding a hidden field with the query
string contents (probably better that way anyway).

My new issue on this one is related to NN outputting the page before the
database contents have been delivered. The result is the page displays down
to where the database content begins, then it stops. The really funny part
is that viewing the source on the final page shows the complete page
contents, but it's apparently not making it to the display in time. Of
course this is not an issue with IE. I swear, if 95% of the users of this
interface weren't using NN, I might just forget about it. IE may be wrong in
what it does sometimes, but it sure is more tolerant.

I've tried using a flush(), but doesn't seem to make any difference. Any
other ideas?

Thanks,

BH

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Ben Phillips
> Sent: Wednesday, January 30, 2002 7:57 AM
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] PHP/NN4: Using <?echo $PHP_SELF?> vs.
> <?$PHP_SELF?>
>
>
> > When I use this:
> >
> > 	<form action="<?$PHP_SELF?>" method="post"...
> >
>
> --  <?$PHP_SELF?> is incorrect - that produces nothing.
>
> You should use <?=$PHP_SELF?> or <? echo $PHP_SELF ?>, this produces the
> path to the current file.
>
> > I get the effect of having no form action at all in NN4. In fact
> > when I view
> > source in NN4 using the above PHP, there is not action in the
> HTML output.
> > Seems to have no effect in IE5+.
>
> The reason it doesn't work on some browsers is because they do not action
> the form to itself by default, ie. if there is nothing in the action
> attribute. Some browsers do.
>
> Benji
> inchima.com
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list