mitz444 Posted June 14, 2007 Share Posted June 14, 2007 Hi guys, I need help with parsing filename then assigning the parsed values in text fields. Basically, I'll be using the code for my ftp upload program. I will choose a file to upload using a file field then I will extract the values of the filename of the file then assign them in different text fields. I hope you guys could help me with this. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/55516-php-newbie-here-need-help-with-parsing/ Share on other sites More sharing options...
trq Posted June 14, 2007 Share Posted June 14, 2007 What part exactly are you stuck with? Post your code. Quote Link to comment https://forums.phpfreaks.com/topic/55516-php-newbie-here-need-help-with-parsing/#findComment-274338 Share on other sites More sharing options...
mitz444 Posted June 14, 2007 Author Share Posted June 14, 2007 I haven't started anything actually. I'm still researching on how to parse arrays and assigning file names from file fields to arrays so I could parse the file name then after I could assign the parsed filename to text fields. I could really help if you could post sample codes on how to retrieve file names from file fields, then assigning the retrieved filename to arrays. For example, I created 3 text fields and 1 file field. What I want to do is when I click on the "browse" button on the file field, then I clicked on somefile.txt from a certain directory, after clicking on the file from a directory, I want to extract the extension filename of "somefile.txt" then display the extracted text in one of the 3 text fields automatically. Quote Link to comment https://forums.phpfreaks.com/topic/55516-php-newbie-here-need-help-with-parsing/#findComment-274350 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.