damonlee3 Posted December 23, 2006 Share Posted December 23, 2006 Hello,All i want to do is have a comma delimited text file, pasted into a text box, uploaded and displayed on an html page.I already have a database in place. Any help would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/ Share on other sites More sharing options...
ted_chou12 Posted December 23, 2006 Share Posted December 23, 2006 I dont understand what you by delimit, could you explain please?Ted. Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147061 Share on other sites More sharing options...
Jessica Posted December 23, 2006 Share Posted December 23, 2006 What does the database have to do with what you just said you wanted to do? You want them to paste the contents of the file into the textbox and store it in the database? Or do you want it to parse the values and sotre them in a bunch of fields in the table?Create an HTML form, then get the value of the textarea, then store it in your database. Look at the tutorials for information on databases if that's where your stuck...Ted: Comma Delimited means the values are separated by commas. ID,Name,Email,1,Ted,[email protected],2,jesirose,[email protected],etc. Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147062 Share on other sites More sharing options...
ted_chou12 Posted December 23, 2006 Share Posted December 23, 2006 oh, then just do explode. :) check it out in the manual Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147063 Share on other sites More sharing options...
damonlee3 Posted December 23, 2006 Author Share Posted December 23, 2006 Ok,My client wants to be able to make changes to her resume and post it on her site. The simplist way is for it to be listed in a csv type format. She could then upload it simply by pasting into a text box and upload. (I'm kind of a noob so I assumed the need for a database) then again, the text could be uploaded and just "read" by the html page? Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147070 Share on other sites More sharing options...
Jessica Posted December 23, 2006 Share Posted December 23, 2006 Why is that the simplest way? CSV files often seem to be more trouble than they're worth. Why not just have a few text boxes for each section and let her type in data.What kind of resume has data that you'd put in a csv? I mean, there are so many different parts, there's education, past work, objective - those aren't things that would work in a csv.I am kind of confused with what you're doing. Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147072 Share on other sites More sharing options...
damonlee3 Posted December 23, 2006 Author Share Posted December 23, 2006 lol, sorryShe is an actress, so her resume format is very simple. All that it consists of is The movie title, her role, and the company that produced the film. For example:Fields of Mudan,Lead,ABCprodutions.If I do it with text boxes for each category, then I have to provide three text boxes for each movie. What if she adds more films? So, if a text file already exists with all here resume info, all she would have to do is edit that text file, paste and upload. See my point? Sorrry for any confusion ::) Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147074 Share on other sites More sharing options...
Jessica Posted December 23, 2006 Share Posted December 23, 2006 You could do that, then parse the data, store it in the database however you chose. You could just upload the actual text file, not copy and paste but upload, then parse it when the file is viewed.There are a ton of ways you could do this. If a csv file is easiest, then do that. How you store it in the database is up to you, but it sounds like you have a movies table with fields title, role, company. Easy to add more. *shrug* Quote Link to comment https://forums.phpfreaks.com/topic/31726-upload-text-comma-delimited-file/#findComment-147075 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.