#=====================================================================
+==========
my @titlelist;
open FILE, "<$ENV{'DOCUMENT_ROOT'}/data/vault/titlelist.txt" or die $!
+;
@titlelist = <FILE>;
close FILE;
print br() x 5;
print start_form( action=>'/cgi-bin/admin.pl' );
print table( {class=>'user_form'},
Tr( td( {width=>'55%'}, 'Select items' ),
td( {width=>'35%'}, popup_menu( -name=>'title', -values=>
+\@titlelist )),
td( {width=>'10%'}, submit('add'))),
Tr( td( 'Soemthign to remark on order' ),
td( {colspan=>2}, textarea( -name=>'remark', -rows=>6, -
+columns=>35 ))),
Tr( td( 'ask for soemthing else if it snot listed on drop don
+menu' ),
td( textfield( -name=>'request' )),
td( submit('request'))),
Tr( td( a( {href=>'/cgi-bin/show.pl?name=showbook'}, font( {s
+ize=>3, color=>'yellow'}, 'Change Order' ))),
td( {colspan=>2}, submit( 'Order!' )))
);
print hidden(-name=>'date', -value=>$date);
print hidden(-name=>'host', -value=>$host);
print end_form();
print br() x 5;
#=====================================================================
+==========
In the aboev code when user hits the "Add" button or the "request" button i need it to get the user selection from frop down menu and store it.
Its about selecting items to place and orer list, i want the user to select many items form the drop down menu.
And also to write its own if he can t find somethign from the drop down menu and then hit "Want".
How can i do it so the user hits those submits button so many times as is the amount of items he wants?
Where do i have to submit the form to? to itself?
you can see how it looks if you visit my webpage at http://nikos.no-ip.org
ps. I edited it and wrote all the greek words to english ones. Also corrected spelling errors.
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.