Click to See Complete Forum and Search --> : Popup form


GurusGuru
12-27-2003, 08:18 AM
I have a html page with 30 different html links.

ABC abc.htm
DEF def.htm
GHI ghi.htm
......... and so on.

What I want is that as soon as someone clicks on any of the links (eg def.htm) a pop up form appears. The viewer has to fill this form and only after the form has been filled and submitted he is taken to the def.htm page.
Requirement 1 - I get an email containing the data of the form and the page name (def.htm) the person has gone to.
Requirement 2 - The data from the form is stored on the server.
Requirement 3 - I get an email and the data is also stored on the server.

Phil Karras
12-29-2003, 10:48 AM
For the pop-up form I'd use JavaScript, the rest is Perl.

Once the pop-up form is sent/submitted it sends the URL and all the form info to your server. You can send your e-mail and save the data to a DB there. Then use

print redirect($WantedUrl);

to get the client to the URL wanted.