Posted by: prajapatinilesh | September 1, 2012

submit form into hidden iframe to give same effect as ajax

<?php

$formName    =  ‘formFileUpload’;
$formAction = $PHP_SELF;

?>

<form name=”<?=$formName?>” action=”<?=$formAction;?>” method=”post” enctype=”multipart/form-data” target=”hiddenjump”>

<input type=”file” id=”fileName” name=”fileName” value=”” size=”30″>

<input type=”submit” value=”submit” name=”btnsubmit” >

</form>

< i frame name=”hiddenjump” src=”” style=”display:none;”> </ i frame>

Advertisements

Responses

  1. Good post Nilesh


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: