Benson
03-09-1999, 04:55 PM
I had a feedback form set up on my old server so that after submitting the form, the following ack page used a cookie to say "Thanks, Joe, for blah bleh bluh". Ever since moving the stuff over to FQ, the feature isn't working. As I recall, the cookie was set on the form page with onBlur or some such. That part still works at FQ because I can see the cookie. A file called cookie.pl, which allows cookies to be used with SSI's, might be the problem. It's called on the ack page like this:
#exec cmd="/big/dom/xmxmdesign/cgi-bin/cookie.pl mxm-name"
(I don't think I used to use the full path like this indicates, but anyway..)
This is cookie.pl:
#!/usr/bin/perl
# This script lets cookies
# be used with SSI's
foreach (split(/; /, $ENV{'HTTP_COOKIE'})) {
($chip,$value) = split(/=/);
$cookie{$chip} = $value;
}
print "$cookie{$ARGV[0]}";
I've made sure that there is a trailing space before the closing comment tag in the SSI, no line breaks, etc. There is another SSI on the page to bring up the header-it works fine.
Any general ideas? Is there an easier way to bring "forward" the submitter's first name to the ack page?
#exec cmd="/big/dom/xmxmdesign/cgi-bin/cookie.pl mxm-name"
(I don't think I used to use the full path like this indicates, but anyway..)
This is cookie.pl:
#!/usr/bin/perl
# This script lets cookies
# be used with SSI's
foreach (split(/; /, $ENV{'HTTP_COOKIE'})) {
($chip,$value) = split(/=/);
$cookie{$chip} = $value;
}
print "$cookie{$ARGV[0]}";
I've made sure that there is a trailing space before the closing comment tag in the SSI, no line breaks, etc. There is another SSI on the page to bring up the header-it works fine.
Any general ideas? Is there an easier way to bring "forward" the submitter's first name to the ack page?