Re: [PHP] Assigning unique form names...

2002-04-09 Thread Jason Wong
On Wednesday 10 April 2002 03:20, Jas wrote: Here is what I need some information about, the script below opens a directory on the server, reads the files and places them into select boxes within a form, now I have this echoed multiple times on the page like so...? echo $file_list; ? Now I

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Kevin Stone
Try select name=files[] The square brackets will allow you to capture selections from multiple lists in an indexed array, $files. Hope that does what you need. -Kevin The square brackets will allow you to capture the variable $file_name -Original Message- From: Jas [mailto:[EMAIL

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Erik Price
I understand what you're saying. You like the convenience of having the entire thing kept in a neat variable called $file_list, which you can add to your page in any place that you like, but you need a unique name for each select input tag so that on the receiving PHP script, you can access

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
How about this... Would I be able to create an array based on the 12 different FORM ACTION=filenames.php pieces that I need? and then simply call a different array result for each filenames.php? If so how could i do this, sorry to be such a pain but I am trying everything I know and this seems

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Erik Price
On Monday, April 8, 2002, at 02:34 PM, Jas wrote: How about this... Would I be able to create an array based on the 12 different FORM ACTION=filenames.php pieces that I need? and then simply call a different array result for each filenames.php? If so how could i do this, sorry to be

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
Sorry about that... What I think might work and I still working on the code for is to create an array to place the 12 different files I am attempting to use (seems a bit unnecessary but I am still new to php and this assists me in keeping it organized) and then call one field of the array to each

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Kevin Stone
is not turned on you can extract the array from $_POST just as you normaly would. Hopefully that clears things up. -Kevin - Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 12:34 PM Subject: Re: [PHP] Assigning unique form names... How about

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
Ok I understand what you mean here, however what I need to do is have a unique form action for each separate form being displayed on the page which totals 12... here is the code for the page: ?php $dir_name = /path/to/images/directory/; $dir = opendir($dir_name); $file_list .= pFORM METHOD=\post\

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Rick Emery
perhaps you could use $file_name -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Assigning unique form names... Ok I understand what you mean here, however what I need to do is have a unique form

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Paul Roberts
: Erik Price [EMAIL PROTECTED] To: Jas [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 6:45 PM Subject: Re: [PHP] Assigning unique form names... I understand what you're saying. You like the convenience of having the entire thing kept in a neat variable called $file_list

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
Yeah I have tried $file_name but the problem stems from the while ($file_name = readdir($dir) being called after the creation of the form in $file_list. Is there a way to put the ($file_name = readdir($dir) before the $file_list function? I have tried to do it a couple of different ways such as

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Miguel Cruz
Where are you getting the target of ACTION= from? Is it just any one of the OPTIONs? I don't understand what you're trying to do (and I don't think I'm alone here - you may even be among us). Can you give a concrete example of what is in the database and how you would like the HTML to look?

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Jas
right now I have it setup as a hardcoded file... here is the piece of code: ?php $dir_name = /path/to/images/directory/; $dir = opendir($dir_name); $file_list .= pFORM METHOD=\post\ ACTION=\index_done.php3\ NAME=\$file_name\SELECT NAME=\files\; while ($file_name = readdir($dir)) { if

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Anzak Wolf
I'm not sure if I can help you much here, but something I might suggest is going to a single page approach. I have a class on www.phpclasses.org that you can download called Command Class. Basicly the idea is that you have a single index.php file which loads your headers and footer