I want to upload an image without refreshing page. please help me for this purpose. I find many thing but ever
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Complete Script :
you need ajax to do it and here some code to work for u :
ajaximage.php
Contains PHP code.
This script helps you to upload images into uploads folder.
Image file name rename into timestamp+session_id.extention
index.php
Contains simple PHP and HTML code.
Here $session_id=1 means user id session value.
Sample database design for Users.
Users
Contains user details username, password, email, profile_image and profile_image_small etc.
Javascript Code