[FLUG] Re: emoconvertitore.pl 0.0.1

  • From: "Lorenzo Bolognini" <lorenzo@xxxxxxxxxxxxx>
  • To: <fanolug@xxxxxxxxxxxxx>
  • Date: Mon, 24 Mar 2003 21:38:46 +0100

Mailing List del Fortunae LUG
=============================

From: "Carlo Minucci" <gecco@xxxxxxxxxxxx>
> #!/usr/bin/perl
> print "emo.convertitore.0.0.1\n";
[...]
> si aspettano migliorie o porting in altri linguaggi

Per eseguire la versione asp puntate all'url:
http://127.0.0.1/emo.asp?action=show
o in qualsiasi altro percorso basta che gli passate il parametro
?action=show

Ciao,
Lo

--- versione Python ---
#!/usr/bin/python
import string
a = raw_input("Frase: ")
a = string.replace(string.lower(a), " ", ".")
print a
--- end python ---

--- versione ASP/VBscript ---
<HTML>
<HEAD>
</HEAD>
<BODY>

<%
action = Request.QueryString("action")

select case action
 case "show"
%>
  <form action="emo.asp?action=exe" method="post">
  <input type="text" name="frase">
  <input type="submit">
  <input type="reset">
  </form>
<%
 case "exe"
  frase = server.htmlencode(replace(lcase(Request.Form("frase")), " ", "."))
  Response.Write("<h1>" & frase & "</h1>")
end select
%>


</BODY>
</HTML>
--- end asp ---

-- 
Bill Gates : "No! Nel nostro software non ci sono bug significativi che un 
numero significativo di utenti vuol vedere corretti."

Other related posts: