Welcome to Geeklog, Anonymous Saturday, January 04 2025 @ 06:07 am EST

Geeklog Forums

Plugin textarea design problem


Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
I am working on a plugin which has a textarea form field. Right now if I enter say a URL like this
Text Formatted Code
<a href="blah blah">

 
I have to enter a (backslash) in front of each " (quotes) in order to not get an error and of course there may be other characters but for the most part it's the " (quotes) that are the problem.

Can someone tell me what I need to do to get around this?
 Quote

Status: offline

ronack

Forum User
Full Member
Registered: 05/27/03
Posts: 612
Never mind folks, I found the answer. Here it is if anyone cares.
Text Formatted Code
<textarea rows=\"30\" name=\"descript\" cols=\"120\" maxlength=\"1000\">".htmlspecialchars($_POST['descript'])."</textarea>
 
 Quote

All times are EST. The time is now 06:07 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content