in reply to Re: Double Quotes in form hidden field values
in thread Double Quotes in form hidden field values

Turns out it wasn't perl related. Its just that I wasn't sure which category it fell into until I'd found a solution.:)

I just use single quotes to delimit the attribute. Thanks.
  • Comment on Re^2: Double Quotes in form hidden field values

Replies are listed 'Best First'.
Re^3: Double Quotes in form hidden field values
by merlyn (Sage) on Jun 15, 2006 at 20:21 UTC
    I just use single quotes to delimit the attribute.
    ... which works until someone has a single-quote in the value. Or both a single and double quote. Or an ampersand.

    No, the proper thing here is to learn to escape properly. Other solutions have already been given in this thread. Pay attention to them.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.