Hi.
There seems to be something rather wrong with my subscribe.cgi. Until a few minutes ago it would overwrite the list.db with every subscribtion (i.e. the list would always consist of exactly one line), but I fixed that by replacing (in sub subscribe)
open (LIST, ">$list")
with
open (LIST, ">>$list")
So now subscribers actually get entered and stay there.
But still, problems remain. people can't unsubscribe because their address is not in the list, or so the system says. But a look into email.db shows me that they are.
I have not previously changed anything in this file. Any ideas what is wrong here?
Oh, and another question, I want to add a variable to the globals array that is passed to the templates. How would I go about that? I have to read in a file and insert it into each page (how I do that does not matter, but globals strikes me as the most practical way).
Thank you,
_ Lasar
There seems to be something rather wrong with my subscribe.cgi. Until a few minutes ago it would overwrite the list.db with every subscribtion (i.e. the list would always consist of exactly one line), but I fixed that by replacing (in sub subscribe)
open (LIST, ">$list")
with
open (LIST, ">>$list")
So now subscribers actually get entered and stay there.
But still, problems remain. people can't unsubscribe because their address is not in the list, or so the system says. But a look into email.db shows me that they are.
I have not previously changed anything in this file. Any ideas what is wrong here?
Oh, and another question, I want to add a variable to the globals array that is passed to the templates. How would I go about that? I have to read in a file and insert it into each page (how I do that does not matter, but globals strikes me as the most practical way).
Thank you,
_ Lasar