Login   Register  
PHP Classes
elePHPant
Icontem

File: csv.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gobinath Mallaiyan  >  CSVReader  >  csv.php  >  Download  
File: csv.php
Role: Example script
Content type: text/plain
Description: Scripts which uses the class
Class: CSVReader
Parse and display uploaded CSV files
Author: By
Last change:
Date: 2005-08-19 06:52
Size: 430 bytes
 

Contents

Class file image Download
<?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    }
}
?>