RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
Since I ran this on Win2000 machine, I changed name of directory: You were right on the money with your code; just a minor mod or two was required: ?php $i=0; // counter $files = array(); // array to store directory content // open directory $dir = opendir(c:\\wbs\\); // loop through

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
Hey Rick, thanks a ton... you have helped me out alot on this list. I got the code working probably about the same time you and another gentleman posted the same fixes I made, however I now have another question about adding a hidden field to take the results of the users selection and passing

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
I must be missing something. Just add a HIDDEN type in your form. It will be sent with all your form data. -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Directory to array to select box... Hey

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path of the file name? Any tips? Thanks, jas -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
, April 05, 2002 10:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Directory to array to select box... So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
Sorry, here is what I have thus far... everything is working except I am just not sure how to pass the result of the users selection to another script, I have added the hidden input type to try and solve it but I think I am doing something wrong, maybe I need to put the hidden input type on the

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
To: [EMAIL PROTECTED] Subject: Re: [PHP] Directory to array to select box... Sorry, here is what I have thus far... everything is working except I am just not sure how to pass the result of the users selection to another script, I have added the hidden input type to try and solve it but I think I am

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Miguel Cruz
On Fri, 5 Apr 2002, Jas wrote: So adding a hidden field would definately pass the contents of the select box to the other script so I am not doing anything wrong with this portion, but what if I wanted to append the path of the file name? Any tips? This isn't an answer to your question, but I