Forum Moderators: coopster & phranque

Message Too Old, No Replies

Formmail mods - help needed with removing success page

Trying to remove success page function

         

tintin99

2:14 pm on Jul 27, 2004 (gmt 0)

10+ Year Member



Hi,

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.

bunltd

3:01 pm on Jul 27, 2004 (gmt 0)

10+ Year Member



Could you use the redirect to send them back to the same page with the form?

<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

tintin99

3:17 pm on Jul 27, 2004 (gmt 0)

10+ Year Member



Thanks for the suggestion Lisa. In fact the site is built with Flash so the 'thank you' page is actually part of the Flash movie and just replaces the form in the same window.

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.

kalos

3:50 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



Then you'll want to replace the page's url with the success movie. I know jack about flash other than thankfully there's a way to block it with Firefox (with an option to view) so you'll want to hit someone up on what your movie is called for the success "page". You may be able to do the whole thing in flash now given the advances in actionscript though.