Jump to content
Sign in to follow this  
o_oe

File download code

Recommended Posts

Please what code is suitable for file download. I am designing a site that requires visitors to download a file in two places.1. At the click of a button.2. After filling a form.Thanks. Your time is highly appreciated.

Share this post


Link to post
Share on other sites

You can link to the file normally

<a href="download.exe">Click to download download.exe</a>

Err... downloading after validation? Hmm... well, you could use PHP to detect a session, and if so will set the content-type to the file type and echo the file code... can't think of a practical way atm.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...