Page 1 of 1

Need a hand or redirection for help

Posted: Tue Sep 23, 2008 7:44 pm
by ack123
Hi all, I believe I hit a brick wall and could use some input. I have a form that is uploading image files to the local filesystem and that is ok, in addition I am also inserting some text about the image into a mysql database, which is also ok. What I can't figure out is how to 'submit' to a preview page first and then when the preview page looks good do the final submit. I suppose it is exactly what we do here with a forum post. I was thinking that a post to something like <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> might help somewhat. But how do I create a page that would be in between my insert page? Any thoughts or suggestions are greatly appreciated.

Thank you,
-ack

Re: Need a hand or redirection for help

Posted: Wed Sep 24, 2008 8:07 am
by papa
Use hidden form fields for the data.

As for the image conserned, I would upload it on the server and have it in the preview page. If user is not satisifed, delete it from the server and go back to upload page.