Beating my brow I ask the breathren the following: I have remade my
news page script so that the text file no longer contains table rows. This has simplified displaying individual posts (which are seperated by 3 newlines in the txt file) for my Delete_A_Post form.
However, I am having a heck of a time making $_ the value of the checkboxes since $_ contains double quotes. If I clean out the quotes with a regex, I screw the html contained in $_. I could ditch the ability to set font face for each post which would let me rid the posts of the double quotes but I have been
scolded for not quoting my values and so I wish to be good.The code I am currently using to create the text boxes follows, but I think the problem is not there so much as it is with my txt file contents.
Advice will be greeted with knishes!
TIA
jg
print qq|Delete This Post? \n
<input type=checkbox name="box$post_number" value=" $_ "<p
+>
$_<hr>\n<p>\n<br><br><br>\n|;
_____________________________________________________If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.
TvZ
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.