Good afternoon,
I am new the the forums, but I have been advancing my php skills as of late. I have not yet been able to find a regex guide that really explains things in such a way I can understand and apply. So I am looking to the php community to help me with this task.
I have a popup page where a user can browse a file directory, when they click a file name that information is passed to the parent form. What I need to do is retain the last two folders of that path.
For example:
The current method produces "file.txt" in the parent form once clicked from the child page.
I need to pass to the parent form "/path1/path2/file.txt" when "file.txt" is clicked.
I know this is failry simple for some of you, and I thank you for your assistance.