This technique is convenient, but does not seem to work with all browsers. Extracting the part of PATH_INFO after the last slash character is a better option.
Sent by James Williams on 11/28/2002 03:08:38 AM:
If you want the page to call itself on post, you can just leave the form action blank. <form name="form1" method="POST" action="">
Sent by Alan Harris-Reid on 11/28/2002 01:16:53 AM:
Foxweb support, thanks for the reply...
>>If the URL is to be embedded in the output of the script, then you only need to use a relative URL...<<
In this case the URL is self-referencing, so that the page calls itself when posted. I don't like to hard-code MyPage.fwx into the form action clause, in case I change the name of the page. To make the code as generic as possible I would like to use Request.ServerVariables('script_name') instead, but it doesn't seem to be returning the value I want with Apache. Looks like I may have to use path_info instead.
BTW, when I created this message I checked "Email notification", but your reply did not arrive by email. Is this feature working correctly?