phpSensei Posted November 6, 2007 Share Posted November 6, 2007 I want the user to fill in the form and click preview with all the information sent to the ?mode=preview part, and let them preview their content, and then click upload with all the data from ?mode=upload.... please try to understand. Page 1 (?mode=upload): Title: Swf: comment: Page 2 (?mode=preview): validate form Get all the data from ?mode=upload show a preview of the swf and put the data in the database... remeber, the ?mode=upload, and preview, are in the same page. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted November 6, 2007 Share Posted November 6, 2007 use a form to upload as normal (this is the preview) when you click preview, upload and display on the page.. the upload will be temp storage.. now while your previewing.. use a form with hidden fields to store the data (same as the ones used to create the preview) but now when they click upload you save that data to a keep area.. <?php switch($_GET['mode']) { case "upload": //do upload stuff (move to keep area) break case "preview": //do preview stuff (upload to temp area) }?> 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.