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... Now I have tried to ass

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 informatio

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: "; while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !="..")) { $file_list .= "$file_name"; } } $file_list .= ""; closedir($dir); ?> And this is what I am storing in the database... Stru

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 s? 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? miguel

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 Paul Roberts
st .= "$file_name"; } } $file_list .= ""; closedir($dir); ?> - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Jas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 6:45 PM S

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 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: "; while ($file_name = readdir($dir)) { if (($file_name != ".") && ($file_name !="..")) { $file_list

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

2002-04-08 Thread Kevin Stone
;[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 12:34 PM Subject: Re: [PHP] Assigning unique form names... > How about this... > Would I be able to create an array based on the 12 different ACTION="filenames.php" pieces that I need? and then simply call a different > array result

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 eac

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 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
How about this... Would I be able to create an array based on the 12 different http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 input tag so that on the "receiving" PHP script, you can access the c

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

2002-04-08 Thread Kevin Stone
Try 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 PROTECTED]] Sent: Monday