diff minato2014/accountcheck.rb @ 673:9b51ab10dbac

marged
author MURAKAMI Masaki <c112124@h.koeki-u.ac.jp>
date Fri, 27 Feb 2015 13:23:53 +0900
parents 3c386da692cc
children
line wrap: on
line diff
--- a/minato2014/accountcheck.rb	Fri Feb 27 13:18:39 2015 +0900
+++ b/minato2014/accountcheck.rb	Fri Feb 27 13:23:53 2015 +0900
@@ -1,3 +1,39 @@
+<<<<<<< local
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+
+#require 'sqlite3'
+require 'cgi'
+
+c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8")
+#db = SQLite3::Database.new("sql/stump.sq3")
+
+print("Content-type: text/html; charset=UTF-8 \n\n")
+
+name = c["name"]
+job = c["job"]
+sex = c["sex"]
+
+print'
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+	"http://www.w3.org/TR/html4/strict.dtd">
+
+<html>
+<head>
+<title>Registering Account</title>
+<link rel="stylesheet" type="text/css" href="design.css">
+</head>
+'
+printf'
+<p>登録が完了しました。下記リンクからスタンプラリーカードを入手して下さい!</p>
+<p><a href="hoge.rb?%s+%s+%s"> >> Let\'s go to Stamp Rally << </a></p>
+',name,job,sex
+print'
+<p></p>
+<p><a href="account.html"> >> アカウント登録画面に戻る << </a></p>
+'
+print'</body></html>'
+=======
 #!/usr/bin/env ruby
 # -*- coding: utf-8 -*-
 
@@ -66,3 +102,4 @@
 
 </body></html>
 ',id.to_i-1
+>>>>>>> other

yatex.org