[San-Diego-pm] HTML to Perl
RSuh@aol.com
RSuh at aol.com
Mon Jan 16 21:09:34 PST 2006
better late than never..
heres some html code which will run without a server..just save it to a file
and open it up in Internet Explorer.
when you click the button on the form, it will run a dos command, on the
local machine.
Its a simple way to create a cheap interface to dos commands, for non techy
end users.
requires activestate perl win32. with PerlScript.
<HTML>
<HEAD>
<SCRIPT LANGUAGE="PerlScript">
sub yourSystem($)
{
my $command = shift;
system($command);
}
</SCRIPT>
</HEAD>
<BODY>
<form name="blah">
<INPUT type="button" VALUE="some description" ONCLICK=yourSystem('dir')>
</form>
</BODY>
</HTML>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/san-diego-pm/attachments/20060117/2a5c2f6b/attachment.html
More information about the San-Diego-pm
mailing list