Re: HTML code returned from a function displayed at wrong place
"J.O. Aho" <[email protected]> Tue, 23 May 2023 08:30:05 +0200
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
On 5/23/23 03:54, Joe wrote: > I have a php function to return an array of 3 values: > 1- a status code > 2- a small HTML form --OR-- a text string > 3- a text string > > I am frustrated by the PHP behavior when a HTML form is returned on value 2 of the array - it gets displayed where the function is called, NOT where I tried to place it on latter part of the page. Any work-around ideas please? This far none of us on this user group has clairvoyant abilities, so we have issue of seeing your code and without seeing your code we can't tell what causes your issue. If the code is short, post it here, if the code is longer than short, then post the link to the code at github/gitlab or any similar public repository. -- //Aho