Jump to content

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/55516-php-newbie-here-need-help-with-parsing/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.