Jump to content

function to add HTML tags to text


ontheplains

Recommended Posts

hey guys, so here is what i'm trying to do.  i have 4 fields (noun1, noun2, noun3, verb1) for a person to fill out and what they put into these fields will be printed out at certain points throughout a quotation (basically, it's a madlib with quotes from the simpsons and futurama).  after the four fields, i allow them to select from a drop-down select menu with the options of bold, underlined, italics.  what i need done is that IF they select any of those, i need what is printed out from the fields to be printed out with HTML tag formats (<b><u><i>).

 

if you need more info, just let me know.  any help would be very appreciated.

Link to comment
https://forums.phpfreaks.com/topic/50412-function-to-add-html-tags-to-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.