i use ruby to write a cgi ..
but i can not use the CGI.new to get the "sk=go" value..
who can help me to fix the problem ?
thanks
···
=======================
index.html :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
</head>
<body>
<form action="test.rb?sk=go" method="post" target="skchat3"
onsubmit='window.open("","skchat3","resizable=yes,toolbar=no,directories=no,status=no,scrollbars=yes,resize=yes")'>
username : <input type="" />
password : <input type="" />
<input type="submit" value="submit" />
</form>
</body>
</html>
=======================
test.rb :
#!C:/InstantRails/ruby/bin/ruby
require 'cgi';
POST = CGI.new
print "Content-type: text/html\r\n\r\n"
print "This is a output test"
print "<br />"
print ">>"+POST['sk']
--
Posted via http://www.ruby-forum.com/.