in reply to (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
in thread Loading $_ as checkbox value when $_ has double quotes in its value

ar0n,
Won't doing it that way screw the HTML? I mean it escapes the quotes around the font face for instance, no? Jeez it is too late for rational thought, I'll try it in the morning. Thx!
jg
_____________________________________________________
If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.TvZ
  • Comment on Re: (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
  • Download Code

Replies are listed 'Best First'.
Re: Re: (ar0n) Re: Loading $_ as checkbox value when $_ has double quotes in its value
by dws (Chancellor) on Dec 04, 2001 at 11:33 UTC
    Won't doing it that way screw the HTML?

    In that case don't make $_ do double-duty. Instead, try

    my $dequoted = $_; $dequoted =~ s/"/&quot;/g; print qq|<input type="checkbox" name="box$post_number" value="$dequote +d">|;

      Don't quote your output at all print "stuff";

      Use a here document instead then you can put anything you fancy in it.

      print <<HTML; Delete This Post? \n <input type=checkbox name="box$post_number" value=" $_ "<p +> $_<hr>\n<p>\n<br><br><br>\n|; HTML