Forums

Modal div form, show thanks, re-hide, redirect url

randoms 26 Aug, 2009
I have a simple mail list signup form. The form is displayed by clicking a text link. I use jQuery to display the form in a modal div, with tranparent background mask. Currently on submit I reload the page that has the link on it using 'redirect url'.

Two questions:

1) I'd like to use the form on more than one page. Is there a way to set the redirect url to something like "previous page"?

2) On submit I'd like the modal div to show a simple thank you message, then hide itself and the mask again.

I'm tired so not thinking straight, but can someone give me a hint on how I might do these?
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger