[REBOL] Re: A bit OT: CGI question
From: al::bri::xtra::co::nz at: 20-Feb-2002 20:56
> I use a Rebol script that takes the input from a form and sends an email
and returns a confirmation page to the client. The rebol script is located
in cgi-bin/ directory the web pages are located in a html/ directory.
> The problem is that the references inside the confirmation page a now all
relative to the cgi-bin/ directory and not to the html/ directory. Any idea
how this can be fixed?
Make sure all references in the HTML specify filenames like:
in other words, make sure the root directory "/" is first.
> Next thing is that the displayed URL in the address entry field, shows the
link & name of the Rebol cgi script and not the URL of the conformation
Write a redirect header back to the browser. Something like:
print "HTTP/1.1 302 OK"
print join "Location: " %/html/confirmation.html
Or write a small html page with a refresh tag in the header to the
confirmation html page. Something like:
<meta http-equiv="Refresh" content="0;
or in my HTML dialect:
print HTML [
refresh 0:00 %/html/confirmation.html
body  
ICQ: 26227169 http://valley.150m.com/