HTML Form Submit Button onClick Image

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
techkid
Forum Commoner
Posts: 54
Joined: Sat Sep 05, 2009 11:18 pm
Location: Maldives

HTML Form Submit Button onClick Image

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

How can I do that?
rajeevbharti
Forum Newbie
Posts: 12
Joined: Fri Oct 30, 2009 12:43 am
Location: Delhi

Re: HTML Form Submit Button onClick Image

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

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..
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: HTML Form Submit Button onClick Image

Post 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
guru2k9
Forum Newbie
Posts: 9
Joined: Fri Oct 30, 2009 6:24 am

Re: HTML Form Submit Button onClick Image

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