Page 1 of 1
HTML Form Submit Button onClick Image
Posted: Fri Oct 30, 2009 12:54 pm
by techkid
I'm working on a image uploader script.
I've a form on index page and I want to display this image when somebody click submit button.
How can I do that?
Re: HTML Form Submit Button onClick Image
Posted: Sat Oct 31, 2009 1:07 am
by rajeevbharti
techkid wrote:I'm working on a image uploader script.
I've a form on index page and I want to display this image when somebody click submit button.
How can I do that?
if you only want to display image after clicking on the submit button then y can use the php redirect method. first u create a form which contain image that y want to display after that use the php's redirect method and redirect the control on that page which contain the image.
syntax is
header("Location:pateh of file");
if you are using php..
Re: HTML Form Submit Button onClick Image
Posted: Sat Oct 31, 2009 8:04 am
by kaszu
if you only want to display image after clicking on the submit button then y can use the php redirect method.
Purpose of 'upload in progress' is to display to user that something is happening, not that image was uploaded?
On some browsers after pressing submit, animated images will stop, so only way is to use asynchronous file upload.
Google returned a lot of tutorials on this subject
asynchronous file upload
Re: HTML Form Submit Button onClick Image
Posted: Wed Nov 04, 2009 10:43 pm
by guru2k9
Hi,
Create a new file to display an image.
And redirect using header("Location: index.php");
<?php
if(isset($_POST[button name]))
{
header("Location: index.php");
}
?>
Thanks