Sorry guys. It was my first post and I confess I didn't read the help file.
Let me try to explain the problem:
I have a page that should, by a Perl script, generate another page with a form. In this form, some fields are defined by the data file. So, the data file (pessoais.dat) looks like this:
aa|Dial up connection|56K|009|ba
ab|Cable Modem|128K|010|bb
wich stands for:
key|description|speed|ref|qid
This form page will then have something like a text input with the description, another with the speed and another that will be Quantity for each product on the data file (
$qid).
Well, when the user submit the form, it must send all this fields by e-mail (look simple, I know). The problem is: taking from the data file example above, the script only gets the cable modem value for quantity. So, here is the code again - once more sorry by my stupidity before...
...
$pessoais = "produtos/pessoais.dat";
$mailprog = '/usr/sbin/sendmail';
$search_for = "a";
$search_field = "all";
&search_database($pessoais,$search_for);
$count = @results;
...
...
foreach $results (@results){
($key,$description,$speed,$ref,$qid) = split(/+\|/,$results);
print MAIL "$description $FORM{$qid}\n\n";
}
...
So, what am I doing wrong? I simply can't understand...
Thanks in advance,
Er Galvão Abbott
a.k.a. Lobo, DaWolf
Webdeveloper
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.