preview images problem

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
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

preview images problem

Post by wizzard »

Hi,

I want something that users can fill in a form and register i have 3 functions called register(), previewregister(), submitregister(). My problem is i want before the images are uploaded in my server in a dir /images/sbase the user can see a preview of everthing for the info it isn't a problem but for the images thats a big problem i can't preview them before it placed on my server. Can someone here helps me plz?
I don't want that in preview mode the images already uploaded in the dir/images/sbase so users can choose another image if they want. I hope my question is clear enough?

Regards
Kris
MattF
Forum Contributor
Posts: 225
Joined: Sun May 19, 2002 9:58 am
Location: Sussex, UK

Post by MattF »

How about uploading to a temporary folder for preview then move to the main folder if they confirm?
wizzard
Forum Commoner
Posts: 93
Joined: Thu May 16, 2002 5:36 am
Location: Belgium
Contact:

Post by wizzard »

Thats sounds like a good idea but problem is if they confirm with the image they choose at register how can i make that this image also will be send to the final map. Can you give me an example for programming such thing? I'm newbie in php i know it's something with move_uploaded..

Regards
Kris
Post Reply