Search the web
Sign In
New User? Sign Up
Perl_Official · Perl . CGI . Shell script
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with a textbox in a form   Message List  
Reply | Forward Message #2059 of 2062 |
Hi,

I know this isn't strictly a Perl problem but it is in a Perl script
so I thought I would ask anyway.

On my site I have a simple flat file database. Each entry is 10 lines.
One line is the description of the item and contains some html tags to
format the text when it is displayed on my site. There are also some
that contain special characters such as " & $ ( ) etc.

The problem I have is this. I have a Perl script that allows me to
edit a database entry. It gives me a form with a text box for each of
the 10 lines. The "value" parameter of each text box is set to
whatever is currently shown in the database. The problem is that when
the text box for the description line encounters an entry containing
special characters or html tags it doesn't just show the entry "as-is"
from the database. Instead the special characters screw it up. For
instance entries containing a <br> tag jump outside the textbox with
part of the information.

So my question is this, is there a way to force the textbox to display
the information exactly the way it is supposed to be, html tags and all?

I have been hunting through my books and on the net but I don't even
know what to look for. If anyone can help I'd appreciate it very much!

Thanks in advance,
Andy Schafer




Sat Nov 24, 2007 2:34 am

lostgameparts
Offline Offline
Send Email Send Email

Forward
Message #2059 of 2062 |
Expand Messages Author Sort by Date

Hi, I know this isn't strictly a Perl problem but it is in a Perl script so I thought I would ask anyway. On my site I have a simple flat file database. Each...
Andy Schafer
lostgameparts
Offline Send Email
Nov 24, 2007
4:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help