Form::...:button(3pm)
π Form::...:button(3pm) π
okay bestie, so this is the manual page for Embperl::Form::Control::submit β yeah the title says button but the actual thing is called submit, we love a little name chaos, it's giving mystery π
. She's a Perl module, she lives in the User Contributed Perl Documentation section, and she makes buttons inside an Embperl Form. Periodt.
β¨ SYNOPSIS β¨
{
type => 'submit',
text => 'send',
name => 'foo',
value => 'xxx',
image => 'xxx',
onclick => 'window.open (...)',
button => [
{
onclick => 'do_something()',
style => 'border: 1px solid black;',
},
{
name => 'foobar',
value => 'Click here, too',
onclick => 'do_something()',
class => 'HurzCSSClass',
onmouseover => 'do(this)';
onmouseout => 'do(that)';
}
]
}
like, copy that vibe exactly, okay? every quote, every semicolon, no notes π
πΈ DESCRIPTION πΈ
So what does she do? She creates a submit control inside an Embperl Form. That's the whole job and she ate π₯.
And here's the cute part: if you hand her an image, she'll make you an image button instead. Iconic. If you wanna know how to actually pass parameters around here, go peek at Embperl::Form, she's the one with the lore.
π¦ PARAMETER π¦
okay so these are the keys you can feed her:
typeβ has to be'button'. no negotiating, bestie, that's the rule πnameβ the name of the button. yeah. it's the name. we're keeping it simple π«Άtextβ this becomes the label on your submit button. OR, if it's an image button, it becomes the tool tip instead. dual purpose queen πvalueβ the value she sends along. that's what goes out into the world β¨imageβ a URL to an image. if you give her one, you get an image button. if you don't, you get a plain normal submit button. your call, both are valid πonclickβ the Javascript that runs when the user clicks the button. go wild,window.open(...)and all that πbuttonβ ahashrefholding the key-value pairs of every attribute the button needs. all of them. she takes the whole package π
π Author π
G. Richter (richter at embperl dot org) and A. Beckert (beckert@ecos.de) made this. absolute legends, we stan β
π§ See Also π§
perl(1), Embperl, Embperl::Form β go read those too, iykyk π
okay that's the whole page!! and a lil cute sign-off for you: this gorgeous thing is from perl v5.34.0, dated 2022-02-06, and she's filed under Form::...:button(3pm). go forth and make buttons, bestie, you're gonna slay π
β¨π¦πΈ
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms