How do I create a <button> tag?
print $q->button(); creates an <input type="button".... tag and
print $q->start_button(); gives an error:
Undefined subroutine CGI::start_button
Best regards
Fabian Gut
>> Is this what you want?
>>
>> print $Q->submit(-name=>'start_button',
>> -label=>'Start Button');
>
> No, that produces <input type="submit".......>
>
> What I want is something like this:
> <button>foo</button>
I look at the source code for the latest version of CGI.pm and did not
find support for that tag.
You have other options. You can always write your own sub-routine to
create the tags you want, and you can even use a local copy of CGI.pm
and add a subroutine (function) to it so you can use the syntax you
want. It's really pretty easy to do.
Kindest Regards,
--
Bill Stephenson