Re: form and arrays[]




"ZeldorBlat" <zeldorblat@xxxxxxxxx> wrote in message
news:1127412051.832362.38310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> >The first part works extremely well .. thank you. The 2nd part has two
>>issues:
>
>>1. each description is repeated twice
>>2. the new line tag is not being recognized
>
> Well, #1 is easy. Since you just copied and pasted my code without
> trying to understand it, you missed the typo that I made. Can you see
> it now?
>
> #2 is also easy. Newline characters (\n) have no effect on the way the
> browser renders the output. Newline's in HTML are accomplished with
> the <br/> tag. Replace the \n with that and you should be fine.
>

As to #1 & #2, you are absolutely correct ... they were easy to fix ...

$str = '';
for($i = 0; $i < 12; $i++) {
$str .="description" . " " . $_POST['description'][$i] . "," . "<br
/>";
}
print_r ($str);

I shouldn't be near a keyboard after 9:30pm '-)
Thanks again for your help!












.



Relevant Pages

  • Re: form and arrays[]
    ... each description is repeated twice ... browser renders the output. ... Newline's in HTML are accomplished with ... the tag. ...
    (php.general)
  • Re: ruby html (or xhtml) forms class...
    ... xx is a library designed to extend ruby objects with html, xhtml, and xml ... xml or xhtml as clean looking and natural as ruby it self. ... attributes may be passed to any tag method as either symbol or string. ...
    (comp.lang.ruby)
  • Re: CSS Safari Problem (Mac)
    ... indirectly quoted, ... anything to say on my point: mixing HTML 4.01 and XHTML 1.0 is clueless. ... The closed meta tag was copied and pasted from Google's Webmaster ... But since this is Usenet, many likely are aware that the theme song ...
    (alt.html)
  • Re: Dynamically assigning functions with parameters to events
    ... which in turn does the work at mouseover-time: ... `onmouseover' is an attribute of the `body' element in Valid HTML ... its start tag. ... That it works in a handful of ...
    (comp.lang.javascript)
  • wierd behavior in program
    ... I am reading a file with html tags in ... I read each tag and push it on the stack and pop it when I ... int degree; ...
    (comp.lang.c)