Jason Carson wrote:
Jason Carson wrote:
Hello everyone,
Lets say I have a file called form.php with the following form on it
that
redirects to index.php when submitted. I would like to take the values
of
the text fields in the form and put them into an array, then be able to
display the
Jason Carson wrote:
Jason Carson wrote:
Hello everyone,
Lets say I have a file called form.php with the following form on it
that
redirects to index.php when submitted. I would like to take the values
of
the text fields in the form and put them into an array, then be able
to
display
Did you correct the missing double quote in your sending form first?
Warren Vail
-Original Message-
From: Jason Carson [mailto:ja...@jasoncarson.ca]
Sent: Thursday, July 23, 2009 9:33 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: A form and an array
Jason Carson wrote
Yes
Did you correct the missing double quote in your sending form first?
Warren Vail
-Original Message-
From: Jason Carson [mailto:ja...@jasoncarson.ca]
Sent: Thursday, July 23, 2009 9:33 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: A form and an array
Jason Carson
In php.ini turn the display_errors to on.
If any error,warn or notice shown,copy them and paste here.
So you can tell us what doesn't work.
good luck~
2009/7/24 Jason Carson ja...@jasoncarson.ca
Jason Carson wrote:
Jason Carson wrote:
Hello everyone,
Lets say I have a file called
I have it working now. I had a comma where a semicolon should have been.
Silly error on my part but thanks to everyone who tried to help me.
In php.ini turn the display_errors to on.
If any error,warn or notice shown,copy them and paste here.
So you can tell us what doesn't work.
good luck~
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]):
Form two has 2 fields for every line and the fields need to be kept in
separate arrays.
/* form2.php */
form action=?PHP Echo $_SERVER['PHP_SELF'] ? method=POST
input type=hidden name=tiers value=?PHP ECHO
$_POST['form1info'] ?
Hmm... Intresting... Like... Hmm.. Name the elements of the second form like
input name=array1[LINE_NUM] input name=array2[LINE_NUM]
Then turn on register_globals, then you'll very automaticly have $array1 and
$array2..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
DvDmanDT wrote:
Hmm... Intresting... Like... Hmm.. Name the elements of the
second form like input name=array1[LINE_NUM] input
name=array2[LINE_NUM]
Then turn on register_globals, then you'll very automaticly
have $array1 and $array2..
Sorry register_globals are off and not getting turned
[snip]
Ok, now on submit of this second form I want to take field1 from each
line and put it into $array1 and field2 from each line and put it into
$arrray2.
[/snip]
Form 1's info would have to be held as hidden fields in Form 2's
construction. An example ...
/* formOne.php */
form
Jay Blanchard wrote:
[snip]
Ok, now on submit of this second form I want to take field1
from each line and put it into $array1 and field2 from each
line and put it into $arrray2.
[/snip]
Form 1's info would have to be held as hidden fields in Form
2's construction. An example ...
/*
11 matches
Mail list logo