Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 rifling through the Monastery: (7)
As of 2014-12-27 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls