I am building a website for one of my clients and they want a function into their website some thing like the following:
when people click the download link, a form will appear ( contact form 7) and after visitors put their details , it will re-directed to the download link.
I able to re-direct to a new page after form submission by using following additional setting to the contact form 7.
on_sent_ok: "location = 'http://example.com/';"
However, They have 10 files , I need to change the re-direction link 10 times to trigger the download for the appropriate file. I can do it by using 10 contact forms which will be very dirty.
Is there any way i can change the re-direction URL dynamically?
For example,
http://example.com/?id=1
http://example.com/?id=2
`<?php
$id = $_GET['id'];
$url= "http://example.com/id=?". $id;
?>`
is there any way to change the following Location with $url ?
on_sent_ok: "location = 'http://example.com/';"