Re: strings in a function return
| From: | Gerard Samuel | Date: | Thu, 30 Aug 2001 02:08:44 +0000 |
| Subject: | Re: strings in a function return | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65151@lists.php.net to get a copy of this message | ||
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 Thu, 30 Aug 2001 10:45, Gerard Samuel wrote:Mozilla sucks sometimes with email formatting. Correction==> Here is a snippet example. function assign() {$string = implode("|",$array); return $string;global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); echo "$data[0]";} <form> $array = array("$new_cat,$assigned_to","$job","$assigned_by");} The variables that form $array are from the form....Hrm - undefined function top() ?? <FORM> ?? But the rest of it returns what I would expect - a comma followed by two | - given that I don't have the values referenced in the array. And you won't either, as they aren't global and aren't passed as parameters.