Re: [PHP] Re: A form and an array

2009-07-23 Thread David Robley
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

Re: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
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

RE: [PHP] Re: A form and an array

2009-07-23 Thread Warren Vail
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

RE: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
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

Re: [PHP] Re: A form and an array

2009-07-23 Thread Dengxule
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

Re: [PHP] Re: A form and an array

2009-07-23 Thread Jason Carson
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~

Re: [PHP] Re: From form to an array

2003-11-18 Thread Curt Zirzow
* 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'] ?

RE: [PHP] Re: From form to an array

2003-11-17 Thread Jeff McKeon
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

RE: [PHP] Re: From form to an array

2003-11-17 Thread Jay Blanchard
[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

RE: [PHP] Re: From form to an array

2003-11-17 Thread Jeff McKeon
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 ... /*