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
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
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
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
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
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
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
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
;[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
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
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
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
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
: Monday, April 08, 2002 10:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Assigning unique form names...
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
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 assign a form name based
on the $file_name varibable but b
15 matches
Mail list logo