in reply to Loading $_ as checkbox value when $_ has double quotes in its value
(You need the -label argument because the default is to print -name next to the box.)#!/usr/bin/perl -w use strict; use CGI qw(:standard); $_ = 'I am a "Perl" Monk'; my $post_number = 5; print header, start_html, 'Delete This Post?', checkbox( -name => 'box' . $post_number, -value => $_, -label =>'', ), '<p>',$_,hr, end_html;
<head><title>Untitled Document</title></head><body> Delete This Post? <input type="checkbox" name="box5" value="I am a "Perl" Monk +" /> <p>I am a "Perl" Monk<hr></body></html></hr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Loading $_ as checkbox value when $_ has double quotes in its value
by Fastolfe (Vicar) on Dec 04, 2001 at 22:01 UTC |