[Xitami] Why does $PHP_SELF not work?
Tim Brummitt
xitami@lists.xitami.org
Thu, 12 Dec 2002 19:53:39 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_0003_01C2A218.2A988A70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
I cannot get $PHP_SELF to work when running Xitami on my PC. I have a PHP
program which includes a form with the following action: -
<form action= "<?php $PHP_SELF ?>" method="post">
When I run the program I get a "The Page Cannot Be Found" message with the
address bar set to:
http://127.0.0.1:1080/<br%20/><b>Notice</b>:%20%20Undefined%20variable:%20%2
0PHP_SELF%20in%20<b>C:/Xitami/webpages/search.php</b>%20on%20line%20<b>37</b
><br%20/>
I am running Xitami v2.5b4 on a stand-alone XP PC. When I run the same
code at an external PHP server it works and re-opens the original page. Is
there something missing from my version of PHP or Xitami?
Regards
Tim Brummitt
------=_NextPart_000_0003_01C2A218.2A988A70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D002403519-12122002>I =
cannot get=20
$PHP_SELF to work when running Xitami on my PC. I have a PHP program =
which=20
includes a form with the following action: -</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D002403519-12122002><form action=3D=20
"<?php $PHP_SELF ?>" method=3D"post"></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D002403519-12122002>When I =
run the=20
program I get a "The Page Cannot Be Found" message with the address bar =
set=20
to:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D002403519-12122002><A=20
href=3D"http://127.0.0.1:1080/<br%20/><b>Notice</b>:%20%20Undefined%20var=
iable:%20%20PHP_SELF%20in%20<b>C:/Xitami/webpages/search.php</b>%20on%20l=
ine%20<b>37</b><br%20/">http://127.0.0.1:1080/<br%20/><b>Noti=
ce</b>:%20%20Undefined%20variable:%20%20PHP_SELF%20in%20<b>C:=
/Xitami/webpages/search.php</b>%20on%20line%20<b>37</b>=
<br%20/</A>></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D002403519-12122002>I am =
running <FONT=20
face=3D"Times New Roman">Xitami v2.5b4 on a stand-alone XP =
PC. When I=20
run the same code at an external PHP server it works and re-opens the =
original=20
page. Is there something missing from my version of PHP or=20
Xitami?</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2><SPAN=20
class=3D002403519-12122002>Regards</SPAN></FONT></DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2><SPAN=20
class=3D002403519-12122002></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Times New Roman" size=3D2><SPAN =
class=3D002403519-12122002>Tim=20
Brummitt</SPAN></FONT></DIV></BODY></HTML>
------=_NextPart_000_0003_01C2A218.2A988A70--