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 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() {
> >>          global $adminurl, $string;
> >>          top();
> >>          if ($string) {
> >>                  $data = explode ("|", $string);
> >>                  echo "$data[0]";
> >>                            }
> >>            <form>
> >>
> >>    $array =  array("$new_cat,$assigned_to","$job","$assigned_by");
> >
> >     $string = implode("|",$array); return  $string;
> >
> >>}
> >>
> >>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.


Why are you putting the form inside the function? There surely must be a 
better way to achieve what you want (which is not clear from the snippet).
.
-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   Oxymoron: Virtual Reality.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to