Lisa23 Posted April 20, 2010 Share Posted April 20, 2010 I have created a form wher admin will insert data into database that includes image now i need a preview buttom just like the one this forum use before submit a topic then if user satisfied with it submit or edit what i thought of doing is create a preview buttom but what will actually do is insert data into a temporary database if user decide to submit it will then delete from temporary database and insert into permanent database. any sugestion on wher can i start i would aprreciate Quote Link to comment Share on other sites More sharing options...
trq Posted April 21, 2010 Share Posted April 21, 2010 If you know the steps involved why not just make it? It really is that simple once you have figured out the steps. Quote Link to comment Share on other sites More sharing options...
ignace Posted April 21, 2010 Share Posted April 21, 2010 You don't necessarily need a temporary table if you go through the preview process you'll notice that below the preview it contains the previous form. So, basically something like this would work: <input type="submit" name="preview" value="Preview"> <input type="submit" name="save" value="Save"> if (isset($_POST['preview'])) { print_preview($_POST); } if (isset($_POST['save'])) { //insert into database } //form 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.