Re: form and arrays[]
- From: "Ian Rutgers" <irutgers@xxxxxxxx>
- Date: Thu, 22 Sep 2005 21:06:46 GMT
"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!
.
- References:
- form and arrays[]
- From: Ian Rutgers
- Re: form and arrays[]
- From: ZeldorBlat
- Re: form and arrays[]
- From: Ian Rutgers
- Re: form and arrays[]
- From: ZeldorBlat
- form and arrays[]
- Prev by Date: sockets and network interfaces
- Next by Date: Re: sockets and network interfaces
- Previous by thread: Re: form and arrays[]
- Next by thread: phpBB login
- Index(es):
Relevant Pages
|