Thanks Dave... worked great... My next problem is to search the amount field for dollar amounts.... I need to be able to search for dollar amounts in ranges... ie ($1,000 or less) ($1,000 - $1,500) etc, etc.. here's my code for the dollar amount to search and it doesn't seem to work right..
<select name="searchprice" size="1" value="price"> <option value="\$" selected>Any Price <option value="<1000">Under \$1,000 <option value="1000-1500">\$1,000 - \$1,500 <option value="1501-2500">\$1,500 - \$2,500 <option value="2501-5000">\$2,500 - \$5,000 <option value="5001-10000">\$5,000 - \$10,000 <option value="10001-15000">\$10,000 - \$15,000 <option value="15001-999999">\$15,000 - UP </select></font></td></tr> if ($desc =~ /$form{'searchprice'}/) {print "$desc\n";}
My data looks like this:

bla bla bla bla $1,000
bla bla $12,500. bla bla
bla $5000 bla bla bla

sometimes it has a comma sometimes it doesn't...
sometimes it has a period directly after it and so on...

____SysAdm

In reply to Re: Re: Search question by SysAdm
in thread Search question by SysAdm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.