Nalina has asked for the wisdom of the Perl Monks concerning the following question:
this works fine if I invoke it through command prompt. But it doesn't display anything if I invoke it through ASP. The ASP Code is as follows.use Win32; $txt = "Test"; $button = 0; $head = "test"; Win32::MsgBox($txt, $button, $head);
Can anyone plz tell me how can I display messagebox in perl which should work even when I call it from ASP.<html> <body> <form action = "disp.asp" method = post> Enter a Value <input type = "text" name = "fname" size = 0> <input type = "submit" value = "click"> </from> <% dim nm nm = request.form("fname") if nm <> "" then set shell = Createobject("wscript.shell") shell.run "cmd.exe /c C:\\Perl\\bin\\perl " & nm, 1, 1 set shell = nothing end if %> </body> </html>
20050328 Edit by castaway: Changed title from 'Perl + msgbox'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Win32::MsgBox via ASP
by Joost (Canon) on Mar 22, 2005 at 13:24 UTC | |
|
Re: Using Win32::MsgBox via ASP
by gellyfish (Monsignor) on Mar 22, 2005 at 13:31 UTC | |
|
Re: Using Win32::MsgBox via ASP
by Errto (Vicar) on Mar 23, 2005 at 03:41 UTC |