Need a hand or redirection for help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ack123
Forum Newbie
Posts: 3
Joined: Thu Aug 28, 2008 3:06 pm

Need a hand or redirection for help

Post 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
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Need a hand or redirection for help

Post 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.
Post Reply