Re: how to combine the results of two variables to echo another variable?



Philip Olson wrote:
Or simply use arrays instead (preferred by most):

<form method="POST">
       <input type=text name="field[]">
       <input type=text name="field[]">
       <input type=text name="field[foo]">
       <input type=submit>
</form>

foreach ($_POST['field'] as $key => $value) {
    ...
}

http://php.net/manual/en/faq.html.php#faq.html.arrays

Where's the fun in that! My way was much harder to comprehend, must be perl haunting me....

Actually, never thought of passing back an array in a form... hmmm....

:-)
Sacs
.



Relevant Pages

  • Re: DrPostman new statement !
    ... no one can comprehend your meaning but you. ... puppets and sockpuppets, ... about the web pages O' fun. ...
    (sci.astro)
  • Re: Brief animated of hmong history, a must see for your leisure time...funny!
    ... Didn’t you see on the subject line that it's fun and entertain? ... gangster, as who cannot assort, understand, and comprehend in this ... information age. ... not to mention the quality and time consuming of the animation ...
    (soc.culture.hmong)
  • Re: The real reason Apple gets good press
    ... able to read and comprehend. ... You put me in my plaice! ... I wish you wouldn't do that, I might start liking you then it wouldn't ... be fun any more. ...
    (comp.sys.mac.advocacy)
  • Re: Best Combination
    ... If what I am saying is still too ''over your head'' to comprehend, ... You just prattle on and on... ... Its just too much fun poking fun at you to stop. ...
    (rec.gambling.lottery)