I am trying to get the script edittag.cgi to do something useful, namely edit a web page, but with little success.
When I run edittag.cgi using the url /cgi-bin/edittag.cgi in my browser the cgi script constructs a web page form containing a text box in which I can enter the relative or absolute path (but not an http url) of the web page that I wish to edit(currently, I am entering ../admissions_edit.htm).
This is what should happen:
After entering the file path and file name the cgi script should fetch the web page, interpret the hidden tags <edittag > ...</edittag> and then construct a web page containing text input boxes and send it to the browser. The user then enters new content in the text boxes and the form is then returned to the controlling cgi script (edittag.cgi), which then constructs a new version of the web page and writes it to the web site folder. The task is then complete.
This is what actually happens:
However, when I run editag.cgi and enter the path/filename '../admissions_edit.htm' I get 'page unavailable' messsages back from the server, because it does not recognise the path as valid.
I do not understand why this happens. If the cgi script is in the folder cgi-bin, and this folder is in the root of the web site, why is the relative path ../admission_edit.htm not acceptable?. Is this problem something to do with the settings in the server configuration file or do I need to specify a different relative (or absolute) path for the web page file?
You can see editag.cgi in action at www.gb-training.com/editmypage.htm. You can choose any page to edit from the drop-down menu and see edittag in action. Feel free to edit any page - they are not publicly viewable. The EditTag script does work! Its an established, tried-and- tested script and I know it works on various servers.
I would appreciate your advice and any help.
Regards
Steve