Simple Multi Line Text box in PHP

Reply

Join Date: Jan 2009
Posts: 5
Reputation: brentv911 is an unknown quantity at this point 
Solved Threads: 0
brentv911 brentv911 is offline Offline
Newbie Poster

Simple Multi Line Text box in PHP

 
0
  #1
Aug 1st, 2009
Hello,

I'm looking for a way to make a simple multi line text box in PHP. I am trying to make a text box a couple thousand characters log. but when i try to create it, it just makes a very long text box. I can't seem to find any information on how to make that a multi line box. I don't care if you can use line returns or not.

I'm very very new to PHP.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 1
Reputation: zechieo is an unknown quantity at this point 
Solved Threads: 0
zechieo zechieo is offline Offline
Newbie Poster

Re: Simple Multi Line Text box in PHP

 
0
  #2
Aug 1st, 2009
I'm a bit confused by your request. Text boxes are generated in html and the data sumbitted is used by the PHP script. If you want to display a text box on a .php page, simply close the php tags and create an html form. I use the <textarea> tag to create mine. You can open and close the <?php tags whenever you like throughout the page. When the tag is closed ?> you can treat the file like a normal html page.

If that isn't what you meant post more details and I'll try to troubleshoot with you. Hope that helps.

Zechieo - Lanslide Gaming PCs:
The <FAKE SIGNATURE>Built For LAN Parties
Last edited by peter_budo; Aug 5th, 2009 at 6:24 am. Reason: Keep It On The Site - Do not manually post "fake" signatures in your posts. Instead, you may create a sitewide signature within the user control panel.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 24
Reputation: ThinkFree is an unknown quantity at this point 
Solved Threads: 3
ThinkFree ThinkFree is offline Offline
Newbie Poster

Re: Simple Multi Line Text box in PHP

 
0
  #3
Aug 2nd, 2009
^yes. <textarea> can be used to create multi-line text box
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: brentv911 is an unknown quantity at this point 
Solved Threads: 0
brentv911 brentv911 is offline Offline
Newbie Poster

Re: Simple Multi Line Text box in PHP

 
0
  #4
Aug 2nd, 2009
My fault. I am very new to all of this.. I think I figured it out though. After looking a little more around on the net.. I am creating an html form. I was using the textarea tag wrong.

The only thing that i can't seem to figure out. Is there a way to limit the size of the textarea in characters?
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 340
Reputation: Josh Connerty is an unknown quantity at this point 
Solved Threads: 26
Josh Connerty's Avatar
Josh Connerty Josh Connerty is offline Offline
Posting Whiz

Re: Simple Multi Line Text box in PHP

 
0
  #5
Aug 2nd, 2009
You would have to use JavaScript I beleive I don't think the textarea allows the maxlength attribute.
Posts should be like mini-skirts, long enough to cover enough, but not too long that you cover too much.

My Liveperson: http://liveperson.com/josh-connerty/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC