Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Creating Table and Inserting Data from CSV

by a6april (Initiate)
on Nov 08, 2012 at 14:17 UTC ( #1002909=note: print w/ replies, xml ) Need Help??


in reply to Re: Creating Table and Inserting Data from CSV
in thread Creating Table and Inserting Data from CSV

This is really cool, How do I add the browse button for something like this? I tried a few things but can't figure it out???

//get the csv file $file = $_FILES[csv][tmp_name]; $handle = fopen($file,"r");
The HTML
<form action="" method="post" enctype="multipart/form-data" name="form +1" id="form1"> Choose your file: <br /> <input name="csv" type="file" id="csv" /> <input type="submit" name="Submit" value="Submit" /> </form>


Comment on Re^2: Creating Table and Inserting Data from CSV
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (18)
As of 2015-07-30 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls