Page 1 of 1

Submit form wiht Pop Up

Posted: Sat Dec 08, 2007 6:10 am
by cupaball
I have a form on a page and when the vistor submits the form I would like the information to process and have a pop up with the thank you message. I do not want the page to reload and I would like the information to disappear from the form.

Can someone point me in the right direction?

Posted: Sat Dec 08, 2007 7:51 am
by feyd
Bad idea.
  1. Pop-ups are always annoying.
  2. Requires Javascript
As long as you provide for Javascript being disabled and/or pop-ups being not allowed (in any form) then go ahead.

You'll need document.opener to submit the form behind the pop-up. This has nothing to do with PHP.. Moved to Client-side.