_giles_ Posted September 14, 2006 Share Posted September 14, 2006 HiI'm a PHP newbie working on my first project to build a simple form which emails me the content (this I've done successfully) and then triggers a file download. This is where I’m a bit stuck.I’ve tried (what seem to me to be) obvious things like trying to trigger hyperlinks etc, I’ve searched all over the place for tutorials, (I can find loads of them for uploading), but I can’t find anything for creating a download script.I’d really appreciate any tips, or URL’s of appropriate tutorials.Many thanks in advanceGiles Quote Link to comment Share on other sites More sharing options...
ultrus Posted September 14, 2006 Share Posted September 14, 2006 Hello,Could you show a link on the page once the form is submitted like this:?Place a hidden form element named "goodtogo" with a value of "you bet!" in your form, once submitted:[code]<?phpif($_POST['goodtogo']) {echo "<a href=\"where/file/is.zip\">Download Now!</a>";}?>[/code]Not sure if this helps, but I hope it inspires great things. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.