Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Need help text box and HTML/break help
Old 07-04-2006, 11:33 PM Need help text box and HTML/break help
DJA
DJA's Avatar
Skilled Talker

Posts: 87
Trades: 0
Im making a blogging script. I want to be able to switch between HTML and just typing text. I need to know how to do sumthing like that I can type sumthing liek this:
Hi
This was the thing
lalalal
and it will automatically put in line breaks, but I want to be able to put in images like this:
<img src="lalala.gif">
and I need to know how do I make a large text box like one in this message board when posting a message. How would I go about doing all this. Or is there a pre-made script I can do all this in?
__________________

Please login or register to view this content. Registration is FREE
DJA is offline
Reply With Quote
View Public Profile Visit DJA's homepage!
 
 
Register now for full access!
Old 07-09-2006, 06:14 PM Re: Need help text box and HTML/break help
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
What you want to use is a sort of BBCode function to eliminate any funny business and attacks. A sample BBCode function for using an image would be like:

[ img ]http://www.domain.com/image.gif [ /img ]

Using reg-ex, you could replace the above sample to the proper html img tag. As far as the textarea size, using css width and height to define your size. If you want the same functionality as WT, search for wysiwyg javascript textarea.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.

Last edited by mgraphic; 07-09-2006 at 06:17 PM..
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help text box and HTML/break help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11670 seconds with 12 queries