Jump to content

Form that posts and opens a file download?


NerdConcepts

Recommended Posts

Sorry I'm sure this is something really simple but I cannot seem to find any information on it. Not much of a javascript guy, more of a PHP one.

 

What I am trying to do is use a form that posts the information to an external tracking system that I have no influence over. Basically it posts a name and email address to a tracking website so I cannot influence the form code at all. But what I want it to do is open a new window with just a pdf file download. This seems more like a simple javascript line on a form button then something easily done with PHP. Not sure if I maybe confusing someone, but it will do the following

 

I do have another question. Is it possible to do 3 things with a single form? 1) Have it submit the form data to the external page (basically opening another frame to do so), 2) Open another window with the file download and 3) in the main window redirect to another website?

 

Just wondering if this is possible with Javascript or should I maybe look into a solution with my "native language" (php).

 

Thanks a bunch.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.