Now I need to enter some value into it and press 'Enter'. That way I will get 'button1' in param() - and I need 'button2' instead. I suppose it is due the fact that button1 has tabindex lower than button2... Is there a way to specify tabindex?#!/usr/bin/perl -T use strict; use warnings; use CGI qw(:standard); print header, start_html; print ("Submitted:", param(), hr) if param(); print start_form, textfield('text1'), br, submit('button1'), submit('button2'), end_form, end_html ;
By the way, when I pressed 'reply' I saw a button at the top of the screen - looks like my question title was parsed as HTML.
--dda
In reply to Re: (jeffa) Re: <input type="button"> does not generate parameter=>value pair
by dda
in thread <input type="button"> does not generate parameter=>value pair
by dda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |