Hi,
I'm setting up a simple FormMail application using Matt's script. The problem is with the redirect feature. I'm using a PHP template page for the site. There are different section of the site, and each section has a number of content pages.
I want to redirect to a url in this form:
http://foo.com?section=home&content=thanks
The problem is that the script converts ampersands to their character entity ( & to & amp; ) using this line in the script:
Code:
$value =~ s/\&/\& amp;/g;
If I comment out this line, it works the way I want.
The problem is that the author has obviously put this line in as a security feature, so I'm not sure it's wise to disable it.
Is there another way around this? Can I somehow split the variables using the & entity instead of the normal "&" ? What potential harm can come from disabling this safety feature?
Thanks a lot!