<?php
include_once('csvImp.class.php');
$csv = new csvImp();
if (isset($_GET['action'])){
$action=$_GET['action'];
if($action = 'upload'){
$csv->fileUpload();
}
if($action = 'form'){?>
<form method="post" action="csv.php?action=upload" enctype="multipart/form-data">
<input type="file" name="txtfile"><br>
<input type="submit" name="Submit" value="Submit" />
</form>
<?php }
}
?>
|