943,519 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 6109
  • PHP RSS
Aug 1st, 2009
0

Simple Multi Line Text box in PHP

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
brentv911 is offline Offline
5 posts
since Jan 2009
Aug 1st, 2009
0

Re: Simple Multi Line Text box in PHP

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
zechieo is offline Offline
1 posts
since Aug 2009
Aug 2nd, 2009
0

Re: Simple Multi Line Text box in PHP

^yes. <textarea> can be used to create multi-line text box
Reputation Points: 10
Solved Threads: 4
Light Poster
ThinkFree is offline Offline
26 posts
since Jul 2009
Aug 2nd, 2009
0

Re: Simple Multi Line Text box in PHP

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
brentv911 is offline Offline
5 posts
since Jan 2009
Aug 2nd, 2009
0

Re: Simple Multi Line Text box in PHP

You would have to use JavaScript I beleive I don't think the textarea allows the maxlength attribute.
Reputation Points: 31
Solved Threads: 27
Unverified User
Josh Connerty is offline Offline
342 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource
Next Thread in PHP Forum Timeline: Help: making a rss reader (twitter)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC