473,660 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Photo preview

pradeepjain
563 Contributor
Haii,
I am making aform where in a photo needs to be uploaded..say lke when he browes the photo and selects a pic he must be shown a preview of the pic and then when he finally saves the form the pic must be saved..


Thanks,
pradeep
Jul 10 '08 #1
4 1345
Markus
6,050 Recognized Expert Expert
Can't be done with php - you'd have to use something like flash, possibly.
Jul 10 '08 #2
hsriat
1,654 Recognized Expert Top Contributor
Preview can't be given without having a travel through the server side script.
You can though use an iframe method to upload a picture. Once uploaded, save the picture as a thumbnail somewhere in the server. And in your HTML, dynamically (with JavaScript) create an img element with src as that thumbnail's address.
Jul 10 '08 #3
pradeepjain
563 Contributor
I have 2 steps in the form i.e he fills up the details on the main page next he previews the page and then submits ..can we do like this in main page let him upload the image and in the preview page he can view the image ???....but the same thing i tried last time but the image details and image was getting lost while submitting data..

Thanks,
Pradeep
Jul 10 '08 #4
dlite922
1,584 Recognized Expert Top Contributor
I have 2 steps in the form i.e he fills up the details on the main page next he previews the page and then submits ..can we do like this in main page let him upload the image and in the preview page he can view the image ???....but the same thing i tried last time but the image details and image was getting lost while submitting data..

Thanks,
Pradeep
things don't get lost, you lose them.

Let's see some code,


Dan
Jul 11 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
9541
by: Eric McDaniel | last post by:
I am trying to read in a bunch of images and manipulate them using Image::Magick, then display them using Tk::Photo. I would like to do this without creating a temp file for each image, since there can be quite a few of them. However, I can't make Tk::Photo understand the data returned by Image::Magick's ImageToBlob() function. Here is the way I had hoped it would work: #!perl
2
1965
by: Tony WONG | last post by:
i am not sure that this subject can be discussed here. i have many photos. they are stored according to the name of the EVENT and YEAR. i will set up a database (sql or access) to store information of the photo and set up a folder to store the "PHOTOs". and design a web page to show. My question is how to put the photo on the web page.
1
2175
by: Bill Strass | last post by:
I have a form showing the records of different people. I would like a photo to be displayed in the form, with each person's record. My digital photo > *.jpg type file and I change each photo to *.bmp format using SnagIt. I created an OLE type field in the table to store either the embedded photo or a link to the photo (I'll decide which method to use,
13
4342
by: Viken Karaguesian | last post by:
Hello everyone, Can anyone recommend a good online site to learn PHP? The W3Schools website is quite lacking - leaves much to be desired. I'm sure there are many places, but which ones are good? I currently run a site with an extensive photo gallery. Hundreds of photos. Right now I have a system which the thumbnails are laid out in a table. You click on a thumbnail and you see the full size picture. That full size picture is in its...
1
2221
by: Throw | last post by:
G'day everyone I'm looking for a simple photo gallery script in PHP (or Perl), but not too simple. I have tried several photo gallery scripts in either language and I have found that they are either too complex or too simple for my purpose. Most photo gallery scripts are intended primarily for sharing new photos continuously and allowing visitors to comment on them. I want something more static, which allows more text content.
2
1855
by: Shane | last post by:
I'm writing a program for renaming my picture files, and I want to use the picture time stamp as a prefix to the file names. I can get the time stamp, but it is extraordinarily slow! I have about 250 pictures in the directory. In debug mode, I can populate the names in a listview in less than two seconds. If I add a column with the time stamp as a string, the listview takes about 70 seconds to populate in debug mode. I haven't made and...
2
3523
by: s.emiliozzi | last post by:
Hi I'm subscribed to badoo and I noticed that when you upload a picture they give you the opportunity of multiselection and preview (thumbnail of images) Sneaking into the html page, I found nothing Does anyone figured out where the trick, or knows another code that has the same effect? Thanks
1
3601
by: cumupkid | last post by:
II am trying to create a form that will allow me to upload photos to a folder in the site root directory and add the information to the mysql db at the same time. I have created two forms, one that uploads to photo to the folder in the site root diorectory. One that uploads the info to mysql database. but... When I try to upload them both ways at the same time i cant get it. I am Including code for both pages i have working. Code for...
2
1638
by: MZ | last post by:
Hi, I am looking for a universal solution to create a photo gallery from files which are laying in a folders fullsize and smallsize. The smallsize files are the thumbnails of the fullsize JPG files. And I have found a prety simple solution. Please take a look at http://www.softpedia.com/get/Internet/Other-Internet-Related/Javascript-Gallery.shtml JavaScript gallery by Consoriana.
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.