Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text format editing using PHP and VBscript

Status
Not open for further replies.

SPYDERIX

Technical User
Jan 11, 2002
1,899
CA
Hi,

I am making an admin app for easy updating of the pages on a bunch of sites, and I want to mimic something like most forum sites use. is a good example of what I want to do, where when you are posting you can click on the B button and a vb popup comes up and you insert your bold text into that and then press ok and then the textarea has bold text inserted into it etc.

Then I would assume the gets turned into <b></b>, I think. What happens when something like that is inserted and then submitted, is it replaced into proper HTML???

I don't know what you would call this thing that I want to do. Can someone point me in the direction of some tutorials that can help me do this.

Thanks!
relax.gif

 
I believe you're going to do it by hand.

There's a VB box type which lets you input text, and that gets transferred to a variable.

You'll simply surround that variable by the [ignore][/ignore] tags when you write it to the page.

Then when you submit the entire page, you'll have to run a quick string replace to swap out all your custom tags for HTML tags.



-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top