質問編集履歴
2
個人名まだ入ってたのでけしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
88
88
|
|
89
|
-
<title>
|
89
|
+
<title>ご予約</title>
|
90
90
|
|
91
91
|
<style>
|
92
92
|
|
@@ -812,7 +812,7 @@
|
|
812
812
|
|
813
813
|
<footer>
|
814
814
|
|
815
|
-
Copyright@2007-2015
|
815
|
+
Copyright@2007-2015 All Rights Reserved
|
816
816
|
|
817
817
|
</footer>
|
818
818
|
|
1
個人名入ってたのでけしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -608,6 +608,210 @@
|
|
608
608
|
|
609
609
|
<footer>
|
610
610
|
|
611
|
+
Copyright@2007-2015 All Rights Reserved
|
612
|
+
|
613
|
+
</footer>
|
614
|
+
|
615
|
+
<script src="../js/style.js"></script>
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
</body>
|
620
|
+
|
621
|
+
</html>
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
```
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
```php
|
632
|
+
|
633
|
+
form3.php
|
634
|
+
|
635
|
+
<?php
|
636
|
+
|
637
|
+
session_start();
|
638
|
+
|
639
|
+
?>
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
<doctype html>
|
644
|
+
|
645
|
+
<html class="export" lang="jp">
|
646
|
+
|
647
|
+
<head>
|
648
|
+
|
649
|
+
<meta charset="utf-8">
|
650
|
+
|
651
|
+
<meta name="viewport" content="width=device-width">
|
652
|
+
|
653
|
+
<meta name="Keywords" content="">
|
654
|
+
|
655
|
+
<meta name="description" content="">
|
656
|
+
|
657
|
+
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" />
|
658
|
+
|
659
|
+
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css" />
|
660
|
+
|
661
|
+
<link rel="stylesheet" type="text/css" href="../fonts/vicons/vicons-font.css" />
|
662
|
+
|
663
|
+
<link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen">
|
664
|
+
|
665
|
+
<link rel="stylesheet" type="text/css" href="../css/common.css" media="screen">
|
666
|
+
|
667
|
+
<link rel="stylesheet" type="text/css" href="../css/reservation.css" media="screen">
|
668
|
+
|
669
|
+
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
670
|
+
|
671
|
+
<title>ご予約</title>
|
672
|
+
|
673
|
+
<style>
|
674
|
+
|
675
|
+
</style>
|
676
|
+
|
677
|
+
</head>
|
678
|
+
|
679
|
+
<body>
|
680
|
+
|
681
|
+
<header>
|
682
|
+
|
683
|
+
<div id="topLogo"><img src="../img/logo.svg"></div>
|
684
|
+
|
685
|
+
<nav>
|
686
|
+
|
687
|
+
<button>
|
688
|
+
|
689
|
+
<img src="../img/mobileBtn.png" width="60" height="60">
|
690
|
+
|
691
|
+
</button>
|
692
|
+
|
693
|
+
<ul>
|
694
|
+
|
695
|
+
<a href="#"><li>トップ</li></a>
|
696
|
+
|
697
|
+
<a href="#"><li>こだわり</li></a>
|
698
|
+
|
699
|
+
<a href="#"><li>メニュー</li></a>
|
700
|
+
|
701
|
+
<a href="#"><li>スタッフブログ</li></a>
|
702
|
+
|
703
|
+
<a href="#"><li>アクセス</li></a>
|
704
|
+
|
705
|
+
<a href="#"><li>ご予約</li></a>
|
706
|
+
|
707
|
+
<li id="closeMenu">ご予約</li>
|
708
|
+
|
709
|
+
</ul>
|
710
|
+
|
711
|
+
</nav>
|
712
|
+
|
713
|
+
</header>
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
<div id="wrapper">
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
<!-- DBへデータを登録する。 -->
|
724
|
+
|
725
|
+
<?php
|
726
|
+
|
727
|
+
$db_user ="root";
|
728
|
+
|
729
|
+
$db_pass = '';
|
730
|
+
|
731
|
+
$db_host="localhost";
|
732
|
+
|
733
|
+
$db_name="sample01";
|
734
|
+
|
735
|
+
$db_type="mysql";
|
736
|
+
|
737
|
+
$dsn="$db_type:host=$db_host; dbname=$db_name;charset=utf8";
|
738
|
+
|
739
|
+
|
740
|
+
|
741
|
+
try{
|
742
|
+
|
743
|
+
$pdo = new PDO($dsn,$db_user,$db_pass);
|
744
|
+
|
745
|
+
$pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
|
746
|
+
|
747
|
+
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES,false);
|
748
|
+
|
749
|
+
print '接続成功しました';
|
750
|
+
|
751
|
+
}
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
catch(PDOException $Exception){
|
756
|
+
|
757
|
+
die("接続エラー:{$Exception->getMessage()}");
|
758
|
+
|
759
|
+
}
|
760
|
+
|
761
|
+
try{
|
762
|
+
|
763
|
+
$pdo->beginTransaction();
|
764
|
+
|
765
|
+
$sql="INSERT INTO formtable(name,np,tel,mail,monthly,daily,are,kan)VALUES(:name,:np,:tel,:mail,:monthly,:daily,:are,:kan)";
|
766
|
+
|
767
|
+
$stmh=$pdo->prepare($sql);
|
768
|
+
|
769
|
+
$stmh->bindValue(':name',$_POST['name'],PDO::PARAM_STR);
|
770
|
+
|
771
|
+
$stmh->bindValue(':np',$_POST['np'],PDO::PARAM_STR);
|
772
|
+
|
773
|
+
$stmh->bindValue(':tel',$_POST['tel'],PDO::PARAM_INT);
|
774
|
+
|
775
|
+
$stmh->bindValue(':mail',$_POST['mail'],PDO::PARAM_STR);
|
776
|
+
|
777
|
+
$stmh->bindValue(':monthly',$_POST['monthly'],PDO::PARAM_STR);
|
778
|
+
|
779
|
+
$stmh->bindValue(':daily',$_POST['daily'],PDO::PARAM_INT);
|
780
|
+
|
781
|
+
$stmh->bindValue(':are',$_POST['are'],PDO::PARAM_STR);
|
782
|
+
|
783
|
+
$stmh->bindValue(':kan',$_POST['kan'],PDO::PARAM_STR);
|
784
|
+
|
785
|
+
$stmh->execute();
|
786
|
+
|
787
|
+
$pdo->commit();
|
788
|
+
|
789
|
+
print "データを".$stmh->rowCount()."件入れました。";
|
790
|
+
|
791
|
+
}
|
792
|
+
|
793
|
+
catch(PDOException $Exception){
|
794
|
+
|
795
|
+
$pdo->rollBack();
|
796
|
+
|
797
|
+
print $Exception->getMessage();
|
798
|
+
|
799
|
+
}
|
800
|
+
|
801
|
+
?>
|
802
|
+
|
803
|
+
|
804
|
+
|
805
|
+
<h1>送信完了</h1>
|
806
|
+
|
807
|
+
<p>完了いたしました。</p>
|
808
|
+
|
809
|
+
<p>ありがとうございます。</p>
|
810
|
+
|
811
|
+
</div><!-- #wrapper -->
|
812
|
+
|
813
|
+
<footer>
|
814
|
+
|
611
815
|
Copyright@2007-2015 松喜屋 All Rights Reserved
|
612
816
|
|
613
817
|
</footer>
|
@@ -628,210 +832,6 @@
|
|
628
832
|
|
629
833
|
|
630
834
|
|
631
|
-
```php
|
632
|
-
|
633
|
-
form3.php
|
634
|
-
|
635
|
-
<?php
|
636
|
-
|
637
|
-
session_start();
|
638
|
-
|
639
|
-
?>
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
<doctype html>
|
644
|
-
|
645
|
-
<html class="export" lang="jp">
|
646
|
-
|
647
|
-
<head>
|
648
|
-
|
649
|
-
<meta charset="utf-8">
|
650
|
-
|
651
|
-
<meta name="viewport" content="width=device-width">
|
652
|
-
|
653
|
-
<meta name="Keywords" content="">
|
654
|
-
|
655
|
-
<meta name="description" content="">
|
656
|
-
|
657
|
-
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" />
|
658
|
-
|
659
|
-
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css" />
|
660
|
-
|
661
|
-
<link rel="stylesheet" type="text/css" href="../fonts/vicons/vicons-font.css" />
|
662
|
-
|
663
|
-
<link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen">
|
664
|
-
|
665
|
-
<link rel="stylesheet" type="text/css" href="../css/common.css" media="screen">
|
666
|
-
|
667
|
-
<link rel="stylesheet" type="text/css" href="../css/reservation.css" media="screen">
|
668
|
-
|
669
|
-
<script src="../js/jquery.min.js" type="text/javascript"></script>
|
670
|
-
|
671
|
-
<title>「季節旬菜」松喜屋のご予約</title>
|
672
|
-
|
673
|
-
<style>
|
674
|
-
|
675
|
-
</style>
|
676
|
-
|
677
|
-
</head>
|
678
|
-
|
679
|
-
<body>
|
680
|
-
|
681
|
-
<header>
|
682
|
-
|
683
|
-
<div id="topLogo"><img src="../img/logo.svg"></div>
|
684
|
-
|
685
|
-
<nav>
|
686
|
-
|
687
|
-
<button>
|
688
|
-
|
689
|
-
<img src="../img/mobileBtn.png" width="60" height="60">
|
690
|
-
|
691
|
-
</button>
|
692
|
-
|
693
|
-
<ul>
|
694
|
-
|
695
|
-
<a href="#"><li>トップ</li></a>
|
696
|
-
|
697
|
-
<a href="#"><li>こだわり</li></a>
|
698
|
-
|
699
|
-
<a href="#"><li>メニュー</li></a>
|
700
|
-
|
701
|
-
<a href="#"><li>スタッフブログ</li></a>
|
702
|
-
|
703
|
-
<a href="#"><li>アクセス</li></a>
|
704
|
-
|
705
|
-
<a href="#"><li>ご予約</li></a>
|
706
|
-
|
707
|
-
<li id="closeMenu">ご予約</li>
|
708
|
-
|
709
|
-
</ul>
|
710
|
-
|
711
|
-
</nav>
|
712
|
-
|
713
|
-
</header>
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
<div id="wrapper">
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
<!-- DBへデータを登録する。 -->
|
724
|
-
|
725
|
-
<?php
|
726
|
-
|
727
|
-
$db_user ="root";
|
728
|
-
|
729
|
-
$db_pass = '';
|
730
|
-
|
731
|
-
$db_host="localhost";
|
732
|
-
|
733
|
-
$db_name="sample01";
|
734
|
-
|
735
|
-
$db_type="mysql";
|
736
|
-
|
737
|
-
$dsn="$db_type:host=$db_host; dbname=$db_name;charset=utf8";
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
try{
|
742
|
-
|
743
|
-
$pdo = new PDO($dsn,$db_user,$db_pass);
|
744
|
-
|
745
|
-
$pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
|
746
|
-
|
747
|
-
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES,false);
|
748
|
-
|
749
|
-
print '接続成功しました';
|
750
|
-
|
751
|
-
}
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
catch(PDOException $Exception){
|
756
|
-
|
757
|
-
die("接続エラー:{$Exception->getMessage()}");
|
758
|
-
|
759
|
-
}
|
760
|
-
|
761
|
-
try{
|
762
|
-
|
763
|
-
$pdo->beginTransaction();
|
764
|
-
|
765
|
-
$sql="INSERT INTO formtable(name,np,tel,mail,monthly,daily,are,kan)VALUES(:name,:np,:tel,:mail,:monthly,:daily,:are,:kan)";
|
766
|
-
|
767
|
-
$stmh=$pdo->prepare($sql);
|
768
|
-
|
769
|
-
$stmh->bindValue(':name',$_POST['name'],PDO::PARAM_STR);
|
770
|
-
|
771
|
-
$stmh->bindValue(':np',$_POST['np'],PDO::PARAM_STR);
|
772
|
-
|
773
|
-
$stmh->bindValue(':tel',$_POST['tel'],PDO::PARAM_INT);
|
774
|
-
|
775
|
-
$stmh->bindValue(':mail',$_POST['mail'],PDO::PARAM_STR);
|
776
|
-
|
777
|
-
$stmh->bindValue(':monthly',$_POST['monthly'],PDO::PARAM_STR);
|
778
|
-
|
779
|
-
$stmh->bindValue(':daily',$_POST['daily'],PDO::PARAM_INT);
|
780
|
-
|
781
|
-
$stmh->bindValue(':are',$_POST['are'],PDO::PARAM_STR);
|
782
|
-
|
783
|
-
$stmh->bindValue(':kan',$_POST['kan'],PDO::PARAM_STR);
|
784
|
-
|
785
|
-
$stmh->execute();
|
786
|
-
|
787
|
-
$pdo->commit();
|
788
|
-
|
789
|
-
print "データを".$stmh->rowCount()."件入れました。";
|
790
|
-
|
791
|
-
}
|
792
|
-
|
793
|
-
catch(PDOException $Exception){
|
794
|
-
|
795
|
-
$pdo->rollBack();
|
796
|
-
|
797
|
-
print $Exception->getMessage();
|
798
|
-
|
799
|
-
}
|
800
|
-
|
801
|
-
?>
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
<h1>送信完了</h1>
|
806
|
-
|
807
|
-
<p>完了いたしました。</p>
|
808
|
-
|
809
|
-
<p>ありがとうございます。</p>
|
810
|
-
|
811
|
-
</div><!-- #wrapper -->
|
812
|
-
|
813
|
-
<footer>
|
814
|
-
|
815
|
-
Copyright@2007-2015 松喜屋 All Rights Reserved
|
816
|
-
|
817
|
-
</footer>
|
818
|
-
|
819
|
-
<script src="../js/style.js"></script>
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
</body>
|
824
|
-
|
825
|
-
</html>
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
```
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
835
|
|
836
836
|
|
837
837
|
###補足情報(言語/FW/ツール等のバージョンなど)
|