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
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
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
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
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
Here is a snippet example.
function assign() {
global $adminurl, $string;
top();
if ($string) {
$data = explode (|, $string);
echo $data[0];
}
form
$array =
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];
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) {
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);
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
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
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
12 matches
Mail list logo