Submit and download form

cruizer

New Member
I have a form that a client wants me to create.
The user will fill out their information in the text boxes, then once they hit submit, the information will be sent to the client (up to this part I can do). Also, when the submit button is pressed, the client wants it to let the user download a file.

How do I go about doing this?

Thanks,
Brent
 

conor

New Member
Well it depends on what type of file it is. Normally, assuming your using PHP, this code will work:

Code:
<?php
header('location: path/to/file');
?>

If the file just opens inside the browser you will need to force it to download with PHP. Let me know if that happens.
 

jnjc

New Member
If I were doing this I would present the user with a page after the submit of the email. Something like:

Code:
Thank you for Your Query.
Please Click [U]Here[/U] to Download your file

HTH,
JC
 
Top