Re: [PHP] strings in a function return

2001-08-30 Thread * RzE:
Original message From: Gerard Samuel [EMAIL PROTECTED] Date: Wed, Aug 29, 2001 at 09:58:12PM -0400 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] strings in a function return I found an error, but it didn't do me any good. I tried this, any tips... Thanks function assign

[PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Hey all. I just started venturing into functions. I have a function that displays a form, but I have a problem with getting the multiple strings back after the submit. Im tryed a return statement at the bottom of the function, but it cannot take more than one string. I tried turning the

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: Hey all. I just started venturing into functions. I have a function that displays a form, but I have a problem with getting the multiple strings back after the submit. Im tryed a return statement at the bottom of the function, but it cannot

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
I was doing it like so == $string = array(var1, var2...); return string; I also tried to implode the array into a string and return the result, but no go. David Robley wrote: On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: Hey all. I just started venturing into functions. I have a

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: I was doing it like so == $string = array(var1, var2...); return string; I also tried to implode the array into a string and return the result, but no go. David Robley wrote: On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: Hey all. I

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Here is a snippet example. function assign() { global $adminurl, $string; top(); if ($string) { $data = explode (|, $string); echo $data[0]; } form $array =

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Mozilla sucks sometimes with email formatting. Correction== Here is a snippet example. function assign() { global $adminurl, $string; top(); if ($string) { $data = explode (|, $string); echo $data[0];

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
I found an error, but it didn't do me any good. I tried this, any tips... Thanks function assign() { global $adminurl, $string; top(); if ($string) { $data = explode (|, $string); foreach ($data as $foo) {

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: Mozilla sucks sometimes with email formatting. Correction== Here is a snippet example. function assign() { global $adminurl, $string; top(); if ($string) { $data = explode (|, $string);

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
top(); is a function that displays a menu, that works. form is where the form goes. In its current setup less the array/implode/explode/foreach loop I can get it to echo 'a' return that I specify. But its no good, when I have 7 seven fields in the form to process. David Robley wrote: On

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 11:38, Gerard Samuel wrote: top(); is a function that displays a menu, that works. form is where the form goes. In its current setup less the array/implode/explode/foreach loop I can get it to echo 'a' return that I specify. But its no good, when I have 7 seven fields in

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Im beginning to think that functions aren't all that cracked up to be. I may as well go back to my old non function way of coding. I was displaying the form in the function because the application Im using currently displays forms in functions. Ill try and see what I can do with this new found