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>


Responses

  1. Good post Nilesh


Leave a comment

Categories