Submit form wiht Pop Up

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
cupaball
Forum Commoner
Posts: 85
Joined: Sun Feb 12, 2006 1:46 pm

Submit form wiht Pop Up

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply