[PHP] checkboxes / form elements
Hello. I have a form that I would like to use checkboxes. these checkboxes are created dynamically. I've been told that if I want to manipulate each one then I should use 'name=checkbox[]' and make an array out of it. okay, fine. but how do i access them in my PHP script? I know I have to use the $_POST[] array, but this creates a multidiminsional array, yes? do i access it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]?? any info is appreciated. thanks, blue -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: BREAK into the DB
the function you are looking for is called nl2br(). Translated it means 'new line to .' when you pull you text from your database run it through this and it will be correctly formatted for HTML to read correctly. See php documentation for further discussion and examples. blue "César aracena" <[EMAIL PROTECTED]> wrote in message 000601c22bbc$7b79c8a0$cfc405c8@gateway">news:000601c22bbc$7b79c8a0$cfc405c8@gateway... Hi all. I have this DB where I'm storing this sometimes large amount of text into a TEXT field, but I can't seem to find the way to BREAK lines so it won't make my browser go 3000 pixels wide when that text is printed. About this, I have two questions: 1) What should I use to break the text into lines at the DB so HTML can read them fine? and 2) How should I make the TEXT INPUT BOX so the visitor doesn't have to type or something after 20 words or so? Is there a way that PHP can count and break text strings by itself prior storing? Thanks in advance, Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php