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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.