I'm using Matt's Formmail in conjunction with a Flash site and I don't need the user to go to a 'success' page after they've sent the form.
Can anyone tell me how to turn off the default success page that Formmail produces? I think it's something to do with the subroutine 'return_html'. I've tried removing the subroutine code but that just screws everything up. As you may have guessed I know very little about perl!
Thanks in anticipation,
Bob.
<input type="hidden" name="redirect" value="http://www.whatever.com/samepage.html">
Probably the easiest way around it, but it might confuse some of your users, who might think that it didn't work when presented with the form again.
You might want to use the redirect to direct them to a thank you page. That way they know the form worked, and they get a page that looks like the rest of the site, instead of the ugly plain text the script outputs.
LisaB
So I don't really need another success page opening in another window, and if I redirected the user back to the same url it would take them back to the site's opening page when I really want them to continue where they left off.
Bob.