Posted by: prajapatinilesh | September 1, 2012

submit form into hidden iframe to give same effect as ajax


$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” >


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



  1. Good post Nilesh

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


%d bloggers like this: