私的良スレ書庫
不明な単語は2ch用語を / 要望・削除依頼は掲示板へ。不適切な画像報告もこちらへどうぞ。 / 管理情報はtwitterでログインするとレス評価できます。 登録ユーザには一部の画像が表示されますので、問題のある画像や記述を含むレスに「禁」ボタンを押してください。
元スレphp+postgresq+fedoracore4で構築
php スレッド一覧へ / php とは? / 携帯版 / dat(gz)で取得 / トップメニューみんなの評価 :
レスフィルター : (試験中)
php+postgresq+fedoracore4で構築
してプログラムをしていますが、
どうもうまくいきません。
DB表示とかはきちんといくのですが、
ソースを出すので、どこがいけないとか
よろしくお願いします。
ちなみに本はphp+postgresqlで作る実用システムです。
してプログラムをしていますが、
どうもうまくいきません。
DB表示とかはきちんといくのですが、
ソースを出すので、どこがいけないとか
よろしくお願いします。
ちなみに本はphp+postgresqlで作る実用システムです。
ソース
<html>
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
<html>
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
emails = document.toroku.email.value;
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
}
cflag2 = emails.indexOf(".");
if(emails == "" || cflag1 != 1 || cflag2 <
1 || emails.length < 7){
alert("E-Mailを正しく入力してください");
return false
}
adrs = document.toroku.address.value;
if(adrs == "" || adrs.length < 5){
alert("住所を正しく入力してください");
return false;
}
document.toroku.submit();
}
</script>
</head>
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
}
cflag2 = emails.indexOf(".");
if(emails == "" || cflag1 != 1 || cflag2 <
1 || emails.length < 7){
alert("E-Mailを正しく入力してください");
return false
}
adrs = document.toroku.address.value;
if(adrs == "" || adrs.length < 5){
alert("住所を正しく入力してください");
return false;
}
document.toroku.submit();
}
</script>
</head>
<body>
<b>ユーザー登録</b><br>
<a href=kensaku.php>戻る<br>
<table border=1 cellpadding=4 cellspacing=0>
<form name=toroku action="ktouroku2.php" method="POST">
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" size=50></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" size=50></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" size=15
style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><input type="text" name="email" size=50
style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所</td>
<td><input type="text" name="address" size=70></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
</form>
</body>
</html>
<b>ユーザー登録</b><br>
<a href=kensaku.php>戻る<br>
<table border=1 cellpadding=4 cellspacing=0>
<form name=toroku action="ktouroku2.php" method="POST">
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" size=50></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" size=50></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" size=15
style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><input type="text" name="email" size=50
style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所</td>
<td><input type="text" name="address" size=70></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
</form>
</body>
</html>
<?
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=x-euc-jp">
<title>ユーザー登録</title>
</head>
<body>
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=x-euc-jp">
<title>ユーザー登録</title>
</head>
<body>
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
すいません。
家でやっているやつなんですが、どうしても表示してくれません。
なんとか構築して会社で役に立ちたいのですが、
どなたか同じ本持ってる方とかいらっしゃらないでしょうか?
ほんとに迷惑かと思いますが、お願いします。
家でやっているやつなんですが、どうしても表示してくれません。
なんとか構築して会社で役に立ちたいのですが、
どなたか同じ本持ってる方とかいらっしゃらないでしょうか?
ほんとに迷惑かと思いますが、お願いします。
<?
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$R = pg_query("select nextval('kaiin_id')");
$kaiin_id = pg_fetch_result($R,0,0);
$password = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password .= chr($i);
}
$sql = "insert into kaiin_table
(kaiin_id,company,name,address,tel,email,password)
values('$kaiin_id','$company','$name','$address',
'$tel','$email','$password')";
pg_query("$sql");
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$R = pg_query("select nextval('kaiin_id')");
$kaiin_id = pg_fetch_result($R,0,0);
$password = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password .= chr($i);
}
$sql = "insert into kaiin_table
(kaiin_id,company,name,address,tel,email,password)
values('$kaiin_id','$company','$name','$address',
'$tel','$email','$password')";
pg_query("$sql");
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー登録</title>
</head>
<body>
<a href=./kensaku.php>戻る</a><br>
下記のとおりに登録しました。<br><br>
<table border>
<tr><td align=center nowrap>ユーザーID</td>
<td><?echo $kaiin_id?></td></tr>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
</body>
</html>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー登録</title>
</head>
<body>
<a href=./kensaku.php>戻る</a><br>
下記のとおりに登録しました。<br><br>
<table border>
<tr><td align=center nowrap>ユーザーID</td>
<td><?echo $kaiin_id?></td></tr>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
</body>
</html>
<?
require('./include/init.inc');
$limit = 20;
if ($_SERVER{'REQUEST_METHOD'} == "GET") {
$sql = $_GET{'sql'};
$allrows = $_GET{'allrows'};
$offset = $_GET{'offset'};
} else {
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
}
?>
<html>
require('./include/init.inc');
$limit = 20;
if ($_SERVER{'REQUEST_METHOD'} == "GET") {
$sql = $_GET{'sql'};
$allrows = $_GET{'allrows'};
$offset = $_GET{'offset'};
} else {
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=euc-jp">
</head>
<body bgcolor=white>
<form name=kensaku action=kensaku.php method=POST>
<?
print "<table><tr align=center>";
print "<td>名前で検索<br>";
print "<input type=text name=name></td>\n";
print "<td>会社名で検索<br>";
print "<input type=text name=company></td>\n";
print "<td>TELで検索<br>";
print "<input type=text name=tel></td>\n";
print "<td>E-Mailで検索<br>";
print "<input type=text name=email></td>\n";
<meta http-equiv="content-type" content="text/html;charset=euc-jp">
</head>
<body bgcolor=white>
<form name=kensaku action=kensaku.php method=POST>
<?
print "<table><tr align=center>";
print "<td>名前で検索<br>";
print "<input type=text name=name></td>\n";
print "<td>会社名で検索<br>";
print "<input type=text name=company></td>\n";
print "<td>TELで検索<br>";
print "<input type=text name=tel></td>\n";
print "<td>E-Mailで検索<br>";
print "<input type=text name=email></td>\n";
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<html>
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<?
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$R = pg_query("select nextval('kaiin_id')");
$kaiin_id = pg_fetch_result($R,0,0);
$password = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password .= chr($i);
}
$sql = "insert into kaiin_table
(kaiin_id,company,name,address,tel,email,password)
values('$kaiin_id','$company','$name','$address',
'$tel','$email','$password')";
pg_query("$sql");
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$R = pg_query("select nextval('kaiin_id')");
$kaiin_id = pg_fetch_result($R,0,0);
$password = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password .= chr($i);
}
$sql = "insert into kaiin_table
(kaiin_id,company,name,address,tel,email,password)
values('$kaiin_id','$company','$name','$address',
'$tel','$email','$password')";
pg_query("$sql");
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
</body>
</html>
12 名前:nobodyさん[sage] 投稿日:2007/09/02(日) 20:56:09 ID:???
迷惑だ
13 名前:nobodyさん[] 投稿日:2007/09/02(日) 21:04:21 ID:O0vZytK1
<?
require('./include/init.inc');
$limit = 20;
if ($_SERVER{'REQUEST_METHOD'} == "GET") {
$sql = $_GET{'sql'};
$allrows = $_GET{'allrows'};
$offset = $_GET{'offset'};
} else {
$name = $_POST{'name'};
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
</body>
</html>
12 名前:nobodyさん[sage] 投稿日:2007/09/02(日) 20:56:09 ID:???
迷惑だ
13 名前:nobodyさん[] 投稿日:2007/09/02(日) 21:04:21 ID:O0vZytK1
<?
require('./include/init.inc');
$limit = 20;
if ($_SERVER{'REQUEST_METHOD'} == "GET") {
$sql = $_GET{'sql'};
$allrows = $_GET{'allrows'};
$offset = $_GET{'offset'};
} else {
$name = $_POST{'name'};
print "<input type=text name=email></td>\n";
print "<td>住所で検索<br>";
print "<input type=text name=address></td>\n";
print "</tr></table>\n";
print "<input type=button value='新規登録' onClick=JavaScript:window.location='./ktouroku.php'><input type=submit value=送信>";
print "。。。。<input type=reset value=リセット><br>\n";
$where = '';
if($name != ""){
$where .= $where ? "and name~'$name' ":"where name~'$name' ";
}
if($company != ""){
$where .= $where ? "and company~'$company' ":"where company~'$company' ";
}
if($tel != ""){
$where .= $where ? "and tel~'$tel' ":"where tel~'$tel' ";
}
if($email != ""){
$where .= $where ? "and email~'$email' ":"where email~'$email' ";
}
if($address != ""){
$where .= $where ? "and address~'$address' ":"where address~'$address' ";
}
if (!$sql) { $sql = "select * from kaiin_table ".$where; } else {$sql = str_replace("\\","",$sql); }
if($offset == ""){
$offset = 0;
$resall = pg_query("$sql");
$allrows = pg_num_rows($resall);
}
print "<td>住所で検索<br>";
print "<input type=text name=address></td>\n";
print "</tr></table>\n";
print "<input type=button value='新規登録' onClick=JavaScript:window.location='./ktouroku.php'><input type=submit value=送信>";
print "。。。。<input type=reset value=リセット><br>\n";
$where = '';
if($name != ""){
$where .= $where ? "and name~'$name' ":"where name~'$name' ";
}
if($company != ""){
$where .= $where ? "and company~'$company' ":"where company~'$company' ";
}
if($tel != ""){
$where .= $where ? "and tel~'$tel' ":"where tel~'$tel' ";
}
if($email != ""){
$where .= $where ? "and email~'$email' ":"where email~'$email' ";
}
if($address != ""){
$where .= $where ? "and address~'$address' ":"where address~'$address' ";
}
if (!$sql) { $sql = "select * from kaiin_table ".$where; } else {$sql = str_replace("\\","",$sql); }
if($offset == ""){
$offset = 0;
$resall = pg_query("$sql");
$allrows = pg_num_rows($resall);
}
10 名前:nobodyさん[] 投稿日:2007/09/02(日) 20:55:03 ID:O0vZytK1
<?
require('./include/init.inc');
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$R = pg_query("select nextval('kaiin_id')");
$kaiin_id = pg_fetch_result($R,0,0);
$password = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
$R = pg_query("$sql order by kaiin_id limit $limit offset $offset");
$rows = pg_num_rows($R);
$tmp = $offset+1;
if($allrows > 0){
print $allrows."件見つかりました".$tmp."件目から".
$rows."件を表示しています。<br>\n";
} else {
print "一致する項目がみつかりませんでした。<br>\n";
}
if($offset > 0){
$prev = $offset - $limit;
if($offset < 0){ $offset = 0;}
print "<a href=kensaku.php?sql=".urlencode($sql).
"&allrows=$allrows&offset=$prev>前</a>";
}if(($allrows - $offset + $limit) > 0 && ($offset+$limit) < $allrows){
$next = $offset + $limit;
print "<a href=kensaku.php?sql=".urlencode($sql).
"&allrows=$allrows&offset=$next>後</a>";
}
print "<table border=1 cellspan=0><tr><th>ユーザーID</th><th>名前</th>";
print "<th>会社名</th><th>TEL</th><th>E-Mail</th><th>住所</th></tr>\n";
for($i = 0; $i < $rows; $i++){
$data = pg_fetch_array($R, $i);
$kaiin_id = $data{'kaiin_id'};
$name = $data{'name'};
$tel = $data{'tel'};
$email = $data{'email'};
$company = $data{'company'};
$address = $data{'address'};
$rows = pg_num_rows($R);
$tmp = $offset+1;
if($allrows > 0){
print $allrows."件見つかりました".$tmp."件目から".
$rows."件を表示しています。<br>\n";
} else {
print "一致する項目がみつかりませんでした。<br>\n";
}
if($offset > 0){
$prev = $offset - $limit;
if($offset < 0){ $offset = 0;}
print "<a href=kensaku.php?sql=".urlencode($sql).
"&allrows=$allrows&offset=$prev>前</a>";
}if(($allrows - $offset + $limit) > 0 && ($offset+$limit) < $allrows){
$next = $offset + $limit;
print "<a href=kensaku.php?sql=".urlencode($sql).
"&allrows=$allrows&offset=$next>後</a>";
}
print "<table border=1 cellspan=0><tr><th>ユーザーID</th><th>名前</th>";
print "<th>会社名</th><th>TEL</th><th>E-Mail</th><th>住所</th></tr>\n";
for($i = 0; $i < $rows; $i++){
$data = pg_fetch_array($R, $i);
$kaiin_id = $data{'kaiin_id'};
$name = $data{'name'};
$tel = $data{'tel'};
$email = $data{'email'};
$company = $data{'company'};
$address = $data{'address'};
print "<tr><td align=center><a href=henko.php?kid=$kaiin_id>$kaiin_id</a></td>";
print "<td>$name</td>";
print "<td>$company</td>";
print "<td>$tel</td>";
print "<td>$email</td>";
print "<td>$address</td></tr>";
}
print "</table>\n";
?>
</form>
</body>
</html>
print "<td>$name</td>";
print "<td>$company</td>";
print "<td>$tel</td>";
print "<td>$email</td>";
print "<td>$address</td></tr>";
}
print "</table>\n";
?>
</form>
</body>
</html>
15 名前:nobodyさん[] 投稿日:2007/09/02(日) 21:05:13 ID:O0vZytK1
<head>
<meta http-equiv="content-type" content="text/html;charset=euc-jp">
</head>
<body bgcolor=white>
<form name=kensaku action=kensaku.php method=POST>
<?
print "<table><tr align=center>";
print "<td>名前で検索<br>";
print "<input type=text name=name></td>\n";
print "<td>会社名で検索<br>";
print "<input type=text name=company></td>\n";
print "<td>TELで検索<br>";
print "<input type=text name=tel></td>\n";
print "<td>E-Mailで検索<br>";
print "<input type=text name=email></td>\n";
<head>
<meta http-equiv="content-type" content="text/html;charset=euc-jp">
</head>
<body bgcolor=white>
<form name=kensaku action=kensaku.php method=POST>
<?
print "<table><tr align=center>";
print "<td>名前で検索<br>";
print "<input type=text name=name></td>\n";
print "<td>会社名で検索<br>";
print "<input type=text name=company></td>\n";
print "<td>TELで検索<br>";
print "<input type=text name=tel></td>\n";
print "<td>E-Mailで検索<br>";
print "<input type=text name=email></td>\n";
22 名前:nobodyさん[] 投稿日:2007/09/02(日) 21:09:40 ID:O0vZytK1
print "<input type=text name=email></td>\n";
print "<td>住所で検索<br>";
print "<input type=text name=address></td>\n";
print "</tr></table>\n";
print "<input type=button value='新規登録' onClick=JavaScript:window.location='./ktouroku.php'><input type=submit value=送信>";
print "。。。。<input type=reset value=リセット><br>\n";
$where = '';
if($name != ""){
$where .= $where ? "and name~'$name' ":"where name~'$name' ";
}
if($company != ""){
$where .= $where ? "and company~'$company' ":"where company~'$company' ";
}
if($tel != ""){
$where .= $where ? "and tel~'$tel' ":"where tel~'$tel' ";
}
if($email != ""){
$where .= $where ? "and email~'$email' ":"where email~'$email' ";
}
if($address != ""){
$where .= $where ? "and address~'$address' ":"where address~'$address' ";
}
if (!$sql) { $sql = "select * from kaiin_table ".$where; } else {$sql = str_replace("\\","",$sql); }
if($offset == ""){
$offset = 0;
$resall = pg_query("$sql");
$allrows = pg_num_rows($resall);
}
print "<input type=text name=email></td>\n";
print "<td>住所で検索<br>";
print "<input type=text name=address></td>\n";
print "</tr></table>\n";
print "<input type=button value='新規登録' onClick=JavaScript:window.location='./ktouroku.php'><input type=submit value=送信>";
print "。。。。<input type=reset value=リセット><br>\n";
$where = '';
if($name != ""){
$where .= $where ? "and name~'$name' ":"where name~'$name' ";
}
if($company != ""){
$where .= $where ? "and company~'$company' ":"where company~'$company' ";
}
if($tel != ""){
$where .= $where ? "and tel~'$tel' ":"where tel~'$tel' ";
}
if($email != ""){
$where .= $where ? "and email~'$email' ":"where email~'$email' ";
}
if($address != ""){
$where .= $where ? "and address~'$address' ":"where address~'$address' ";
}
if (!$sql) { $sql = "select * from kaiin_table ".$where; } else {$sql = str_replace("\\","",$sql); }
if($offset == ""){
$offset = 0;
$resall = pg_query("$sql");
$allrows = pg_num_rows($resall);
}
6 名前:nobodyさん[] 投稿日:2007/09/02(日) 20:40:43 ID:O0vZytK1
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<?
require('./include/init.inc');
$kid = $_GET{'kid'};
$password2 = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password2) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password2 .= chr($i);
}
$R = pg_query("select * from kaiin_table where kaiin_id='$kid'");
$data = pg_fetch_array($R,0);
$name = $data{'name'};
$company = $data{'company'};
$tel = $data{'tel'};
$email = $data{'email'};
$address = $data{'address'};
$password = $data{'password'};
?>
require('./include/init.inc');
$kid = $_GET{'kid'};
$password2 = "";
$micro = (double)microtime()*1000000;
mt_srand($micro);
while(strlen($password2) < 8){
$i = mt_rand(48,90);
if($i > 57 && $i < 65 || $i == 48 || $i == 79){
continue;
}
$password2 .= chr($i);
}
$R = pg_query("select * from kaiin_table where kaiin_id='$kid'");
$data = pg_fetch_array($R,0);
$name = $data{'name'};
$company = $data{'company'};
$tel = $data{'tel'};
$email = $data{'email'};
$address = $data{'address'};
$password = $data{'password'};
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.kaiin_id.value == ""){
alert("ユーザーIDを入力してください");
return false;
}
if(document.toroku.name.value == ""){
alert("名前を入力してください。");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力してください。");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力してください");
return false;
}
emails = document.toroku.email.value;
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.kaiin_id.value == ""){
alert("ユーザーIDを入力してください");
return false;
}
if(document.toroku.name.value == ""){
alert("名前を入力してください。");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力してください。");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力してください");
return false;
}
emails = document.toroku.email.value;
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
}
}
cflag2 = emails.indexOf(".");
if(emails == "" || cflag1 != 1 || cflag2 < 1 || emails.length < 7){
alert("E-Mailを正しく入力してください");
return false
}
adrs = document.toroku.address.value;
if(adrs == "" || adrs.length < 5){
alert("住所を正しく入力してください");
return false;
}
password = document.toroku.password.value;
if(password == "" || password.length < 8){
alert("パスワードを正しく入力してください。");
return false;
}
document.toroku.submit();
}
function sakujo(kid){
if(!confirm(kid+"を削除します。")){
return;
}
document.usakujo.kaiin_id.value=kid;
document.usakujo.submit();
}
</script>
</head>
}
cflag2 = emails.indexOf(".");
if(emails == "" || cflag1 != 1 || cflag2 < 1 || emails.length < 7){
alert("E-Mailを正しく入力してください");
return false
}
adrs = document.toroku.address.value;
if(adrs == "" || adrs.length < 5){
alert("住所を正しく入力してください");
return false;
}
password = document.toroku.password.value;
if(password == "" || password.length < 8){
alert("パスワードを正しく入力してください。");
return false;
}
document.toroku.submit();
}
function sakujo(kid){
if(!confirm(kid+"を削除します。")){
return;
}
document.usakujo.kaiin_id.value=kid;
document.usakujo.submit();
}
</script>
</head>
/head>
<body>
<form name=usakujo action=sakujo.php method=POST>
<input type=hidden name=kaiin_id>
</form>
<b>ユーザー情報変更</b><br>
<form name=toroku action="henko2.php" method="POST">
<input type=hidden name=kid value=<?echo $kid?>>
<table border=1 cellpadding=4 cellspacing=0>
<tr><td align=center nowrap>ユーザーID</td>
<td><input type="text" name="kaiin_id" value='<?echo $kid?>' size=10 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" value='<?echo $name?>' size=40></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" value='<?echo $company?>' size=40></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" value='<?echo $tel?>' size=15 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E=MAIL</td>
<td><input type="text" name="email" value='<?echo $email?>' size=50 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所/td>
<td><input type="text" name="address" value='<?echo $address?>' size=70></td></tr>
<tr><td align=center nowrap>パスワード</td>
<body>
<form name=usakujo action=sakujo.php method=POST>
<input type=hidden name=kaiin_id>
</form>
<b>ユーザー情報変更</b><br>
<form name=toroku action="henko2.php" method="POST">
<input type=hidden name=kid value=<?echo $kid?>>
<table border=1 cellpadding=4 cellspacing=0>
<tr><td align=center nowrap>ユーザーID</td>
<td><input type="text" name="kaiin_id" value='<?echo $kid?>' size=10 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" value='<?echo $name?>' size=40></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" value='<?echo $company?>' size=40></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" value='<?echo $tel?>' size=15 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E=MAIL</td>
<td><input type="text" name="email" value='<?echo $email?>' size=50 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所/td>
<td><input type="text" name="address" value='<?echo $address?>' size=70></td></tr>
<tr><td align=center nowrap>パスワード</td>
30 名前:nobodyさん[] 投稿日:2007/09/02(日) 21:24:00 ID:O0vZytK1
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.kaiin_id.value == ""){
alert("ユーザーIDを入力してください");
return false;
}
if(document.toroku.name.value == ""){
alert("名前を入力してください。");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力してください。");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力してください");
return false;
}
emails = document.toroku.email.value;
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.kaiin_id.value == ""){
alert("ユーザーIDを入力してください");
return false;
}
if(document.toroku.name.value == ""){
alert("名前を入力してください。");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力してください。");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力してください");
return false;
}
emails = document.toroku.email.value;
cflag1 = 0;
for(var i=0; i < emails.length; i++){
if(emails.charAt(i) == "@"){
cflag1++;
}
2 名前:nobodyさん[] 投稿日:2007/09/02(日) 20:24:15 ID:O0vZytK1
ソース
<html>
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
ソース
<html>
<head>
<meta http-equiv=content-type
content="text/html;
charset=euc-jp">
<title>ユーザー登録</title>
<script language=JavaScript>
function soshin(){
if(document.toroku.name.value == ""){
alert("名前を入力ください");
return false;
}
if(document.toroku.company.value == ""){
alert("会社名を入力ください");
return false;
}
if(document.toroku.tel.value == ""){
alert("TELを入力ください");
return false;
}
<td><input type="text" name="password" value='<?echo $password?>' maxlength=8 size=12 style=ime-mode:disabled>
新しく生成したパスワード <?echo $password2?></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
<input type=button value='削除' onClick=sakujo('<?echo $kid?>')>
</form>
</body>
</html>
新しく生成したパスワード <?echo $password2?></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
<input type=button value='削除' onClick=sakujo('<?echo $kid?>')>
</form>
</body>
</html>
<?
require('./include/init.inc');
$kid = $_POST{'kid'};
$kaiin_id = $_POST{'kaiin_id'};
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$password = $_POST{'password'};
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
</script>
</head>
require('./include/init.inc');
$kid = $_POST{'kid'};
$kaiin_id = $_POST{'kaiin_id'};
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$password = $_POST{'password'};
?>
<html>
<head>
<meta http-equiv=content-type content="text/html;charset=euc-jp">
<title>ユーザー情報変更</title>
</script>
</head>
<td><input type="text" name="password" value='<?echo $password?>' maxlength=8 size=12 style=ime-mode:disabled>
バックドア用のパスワード <?echo $password2?></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
<input type=button value='削除' onClick=sakujo('<?echo $kid?>')>
</form>
</body>
</html>
バックドア用のパスワード <?echo $password2?></td></tr>
</table>
<input type=button value='送信' onClick=soshin()>
<input type=button value='削除' onClick=sakujo('<?echo $kid?>')>
</form>
</body>
</html>
<body>
<b>ユーザー情報変更</b><br>
下記の内容でよろしければ登録ボタンを押してください<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action=henko3.php method="post">
<input type=hidden name=kid value='<?echo $kid?>'>
<input type=hidden name=kaiin_id value='<?echo $kaiin_id?>'>
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<input type=hidden name=password value='<?echo $password?>'>
<tr><td align=center nowrap>ユーザーID</td>
<td><?echo $kaiin_id?></td></tr>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<b>ユーザー情報変更</b><br>
下記の内容でよろしければ登録ボタンを押してください<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action=henko3.php method="post">
<input type=hidden name=kid value='<?echo $kid?>'>
<input type=hidden name=kaiin_id value='<?echo $kaiin_id?>'>
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<input type=hidden name=password value='<?echo $password?>'>
<tr><td align=center nowrap>ユーザーID</td>
<td><?echo $kaiin_id?></td></tr>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
<tr><td align=center nowrap>パスワード</td>
<td><?echo $password?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
6 名前:nobodyさん[] 投稿日:2007/09/02(日) 20:40:43 ID:O0vZytK1
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<b>ユーザー登録</b><br>
下記の内容でよければ登録ボタンを押してください。<br>
<table border=1 cellpadding=4 cellspacing=0>
<form action="ktouroku3.php" method="post">
<input type=hidden name=name value='<?echo $name?>'>
<input type=hidden name=company value='<?echo $company?>'>
<input type=hidden name=tel value='<?echo $tel?>'>
<input type=hidden name=email value='<?echo $email?>'>
<input type=hidden name=address value='<?echo $address?>'>
<tr><td align=center nowrap>お名前</td>
<td><?echo $name?></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><?echo $company?></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><?echo $tel?></td></tr>
<tr><td align=center nowrap>E-MAIL</td>
<td><?echo $email?></td></tr>
<tr><td align=center nowrap>住所</td>
<td><?echo $address?></td></tr>
</table>
<input type=submit value='登録'>
</form>
</body>
</html>
<?
require('./include/init.inc');
$kid = $_POST{'kid'};
$kaiin_id = $_POST{'kaiin_id'};
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$password = $_POST{'password'};
$sql = "update kaiin_table set kaiin_id='$kaiin_id',company='$company',
name='$name',address='$address',tel='$tel',
email='$email',password='$password' where kaiin_id='$kid'";
if(!pg_query("$sql")){
print "更新できませんでした。<br><br>\n";
print "<a href=kensaku.php>戻る</a>\n";
} else {
header("Location: ./kensaku.php");
}
?>
require('./include/init.inc');
$kid = $_POST{'kid'};
$kaiin_id = $_POST{'kaiin_id'};
$name = $_POST{'name'};
$company = $_POST{'company'};
$tel = $_POST{'tel'};
$email = $_POST{'email'};
$address = $_POST{'address'};
$password = $_POST{'password'};
$sql = "update kaiin_table set kaiin_id='$kaiin_id',company='$company',
name='$name',address='$address',tel='$tel',
email='$email',password='$password' where kaiin_id='$kid'";
if(!pg_query("$sql")){
print "更新できませんでした。<br><br>\n";
print "<a href=kensaku.php>戻る</a>\n";
} else {
header("Location: ./kensaku.php");
}
?>
<?
require('./include/init.inc');
$kaiin_id = $_POST{'kaiin_id'};
pg_query("delete from kaiin_table where kaiin_id='$kaiin_id'");
header("Location: ./kensaku.php");
?>
require('./include/init.inc');
$kaiin_id = $_POST{'kaiin_id'};
pg_query("delete from kaiin_table where kaiin_id='$kaiin_id'");
header("Location: ./kensaku.php");
?>
/head>
<body>
<form name=usakujo action=sakujo.php method=POST>
<input type=hidden name=kaiin_id>
</form>
<b>ユーザー情報変更</b><br>
<form name=toroku action="henko2.php" method="POST">
<input type=hidden name=kid value=<?echo $kid?>>
<table border=1 cellpadding=4 cellspacing=0>
<tr><td align=center nowrap>ユーザーID</td>
<td><input type="text" name="kaiin_id" value='<?echo $kid?>' size=10 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" value='<?echo $name?>' size=40></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" value='<?echo $company?>' size=40></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" value='<?echo $tel?>' size=15 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E=MAIL</td>
<td><input type="text" name="email" value='<?echo $email?>' size=50 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所/td>
<td><input type="text" name="address" value='<?echo $address?>' size=70></td></tr>
<tr><td align=center nowrap>パスワード</td>
<body>
<form name=usakujo action=sakujo.php method=POST>
<input type=hidden name=kaiin_id>
</form>
<b>ユーザー情報変更</b><br>
<form name=toroku action="henko2.php" method="POST">
<input type=hidden name=kid value=<?echo $kid?>>
<table border=1 cellpadding=4 cellspacing=0>
<tr><td align=center nowrap>ユーザーID</td>
<td><input type="text" name="kaiin_id" value='<?echo $kid?>' size=10 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>名前</td>
<td><input type="text" name="name" value='<?echo $name?>' size=40></td></tr>
<tr><td align=center nowrap>会社名</td>
<td><input type="text" name="company" value='<?echo $company?>' size=40></td></tr>
<tr><td align=center nowrap>TEL</td>
<td><input type="text" name="tel" value='<?echo $tel?>' size=15 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>E=MAIL</td>
<td><input type="text" name="email" value='<?echo $email?>' size=50 style=ime-mode:disabled></td></tr>
<tr><td align=center nowrap>ご住所/td>
<td><input type="text" name="address" value='<?echo $address?>' size=70></td></tr>
<tr><td align=center nowrap>パスワード</td>
php.iniの設定は
default_charset = EUC-JP
mbstring.http_output = EUC-JP
mbstring.internal_encoding = EUC-JP
mbstring.http_input = ASCII,JIS,EUC-JP,SJIS
mbstring.detect_order = ASCII,JIS,EUC-JP,SJIS
mbstring.substitute_character = none
こうです。
postgresqlの文字コードEUC_JPです。
ではよろしくお願いします。
ほんとにできませんでした。
default_charset = EUC-JP
mbstring.http_output = EUC-JP
mbstring.internal_encoding = EUC-JP
mbstring.http_input = ASCII,JIS,EUC-JP,SJIS
mbstring.detect_order = ASCII,JIS,EUC-JP,SJIS
mbstring.substitute_character = none
こうです。
postgresqlの文字コードEUC_JPです。
ではよろしくお願いします。
ほんとにできませんでした。
確認の画面がでてこないんです。
送信ボタンを押すとそのまま真っ白な
画面で、これってどうすればいいのでしょうか?
送信ボタンを押すとそのまま真っ白な
画面で、これってどうすればいいのでしょうか?
__,,/ _, ----`ヽ :.
:. / _ ___ 、\
/ / i \ \\ :.
:. ,'./ i ヽ:. ヽ:.:.. ヽ.ヽ
,'/ / .ハ ヽ ヽ:.:.:.:. ヽ::.. ヽヽ :.
:. |i .i i .i / ヽ ト 、 \、:.:.:. ',:.',:.:.lヽ}
|i .i l :N_, -弋 \弌弋ナ:}:.:}
:. |i∧ ', :{ ,ィjモト \ イjミトイイV :. な…
.| :メヽ.', `ozZ} izN。ハ::{ なんでですか?
:. | :ヾ_! ゝ "゙゙ ' `゙ ハ.:', :.
| :.:_イ .:.ヽ. (二フ , イ :.:.:!:.ヽ なんでだれも
:. / rィイ | :.:.ヽ: >r/`<ノ .:.::.}ヽ、\:. 答えてくれないんですか?
/ ∧l;l ! :.:.:.://{二 ̄ .} ..:..::リ//ハ.:\
:. / .{. ',ヾ、ヽi .:.:.{ /(^` |.:.:.:.//: : :.}: . ヽ.:.
/ / ) ヽ ヾ、ヽ:.ハ ヤ{ ∧/.-‐'": : |:.:. i ',
./ .,イ .:..} : :\ヾレ'ハ ∧__ノノハヾ、 : : : l:.:.: .ハ ',
{ /| .:.:ハ : : :i Y {ヾ`Yヽニン'ノ}: : } : : : :/:.:.:/ }:.}
V | .:.:/:.:|_,ィ' ̄ ヽ三{ `ー-ノ : イ : : :/:.:i.:{ リ
ヽ:.:{、.:.V : : ヘ : : {: : :/:.::∧|
ヽ! )人 : : :人 : : : / \! :.
" ヽ : : : : :/イ{ :.ノ: : : :.\ :.
:. \__///: :\______/: : : : : : : ヽ
/ //: : :|;|: : : : : : i: : : __: : : : ',
:. / 、 {;{ |;| . : i/. : : : : : :|
/ `Y;{. . . .|;|. : : : /i: : : : : : : : :l
:. / _ ___ 、\
/ / i \ \\ :.
:. ,'./ i ヽ:. ヽ:.:.. ヽ.ヽ
,'/ / .ハ ヽ ヽ:.:.:.:. ヽ::.. ヽヽ :.
:. |i .i i .i / ヽ ト 、 \、:.:.:. ',:.',:.:.lヽ}
|i .i l :N_, -弋 \弌弋ナ:}:.:}
:. |i∧ ', :{ ,ィjモト \ イjミトイイV :. な…
.| :メヽ.', `ozZ} izN。ハ::{ なんでですか?
:. | :ヾ_! ゝ "゙゙ ' `゙ ハ.:', :.
| :.:_イ .:.ヽ. (二フ , イ :.:.:!:.ヽ なんでだれも
:. / rィイ | :.:.ヽ: >r/`<ノ .:.::.}ヽ、\:. 答えてくれないんですか?
/ ∧l;l ! :.:.:.://{二 ̄ .} ..:..::リ//ハ.:\
:. / .{. ',ヾ、ヽi .:.:.{ /(^` |.:.:.:.//: : :.}: . ヽ.:.
/ / ) ヽ ヾ、ヽ:.ハ ヤ{ ∧/.-‐'": : |:.:. i ',
./ .,イ .:..} : :\ヾレ'ハ ∧__ノノハヾ、 : : : l:.:.: .ハ ',
{ /| .:.:ハ : : :i Y {ヾ`Yヽニン'ノ}: : } : : : :/:.:.:/ }:.}
V | .:.:/:.:|_,ィ' ̄ ヽ三{ `ー-ノ : イ : : :/:.:i.:{ リ
ヽ:.:{、.:.V : : ヘ : : {: : :/:.::∧|
ヽ! )人 : : :人 : : : / \! :.
" ヽ : : : : :/イ{ :.ノ: : : :.\ :.
:. \__///: :\______/: : : : : : : ヽ
/ //: : :|;|: : : : : : i: : : __: : : : ',
:. / 、 {;{ |;| . : i/. : : : : : :|
/ `Y;{. . . .|;|. : : : /i: : : : : : : : :l
類似してるかもしれないスレッド
- phpは何故分離されたのかスレ (87) - [9%] - 2023/1/20 17:45
トップメニューへ / →のくす牧場書庫について