質問編集履歴

1

追記

2016/07/12 03:25

投稿

earnest_gay
earnest_gay

スコア615

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,95 @@
63
63
 
64
64
 
65
65
  宜しくお願いします。
66
+
67
+
68
+
69
+
70
+
71
+ ---
72
+
73
+
74
+
75
+ 質問が雑すぎました。
76
+
77
+
78
+
79
+ ソースはこうなってます。
80
+
81
+
82
+
83
+ ```ここに言語を入力
84
+
85
+ <form action="" method="post">
86
+
87
+ <?php foreach ($stmtVitae as $VitaeRows) { ?>
88
+
89
+ <table border="">
90
+
91
+ <tbody>
92
+
93
+ <tr>
94
+
95
+ <td>案件名</td>
96
+
97
+ <td colspan="2">
98
+
99
+ <input type="hidden" name="id[]" value="<?php echo $VitaeRows['id'] ?>">
100
+
101
+ <input type="text" name="projectTitle[]" maxlength="30" size="" placeholder="" value="<?php echo $VitaeRows['projectTitle'] ?>">
102
+
103
+ </td>
104
+
105
+ </tr>
106
+
107
+ <tr>
108
+
109
+ <td>業務内容</td>
110
+
111
+ <td colspan="2">
112
+
113
+ <textarea name="businessContent[]" rows="10" cols="100">
114
+
115
+ <?php echo $VitaeRows['businessContent'] ?>
116
+
117
+ </textarea></td>
118
+
119
+ </tr>
120
+
121
+ <tr>
122
+
123
+ <td colspan="3">
124
+
125
+ <a href='test.php?id=<?php echo $VitaeRows['id'] ?> ' onclick="return confirm('削除してよろしいですか?')">この業務経歴を削除する</a>
126
+
127
+ </td>
128
+
129
+ </tr>
130
+
131
+ </tbody>
132
+
133
+ </table>
134
+
135
+ <br />
136
+
137
+ <?php } ?>
138
+
139
+ <br />
140
+
141
+ <input type="submit" name="submit" value="更新する">
142
+
143
+ </form>
144
+
145
+ ```
146
+
147
+
148
+
149
+ <input type="submit" name="submit" value="更新する">
150
+
151
+ ↑更新するを押すと更新用のSQLが走ります。
152
+
153
+
154
+
155
+ それとは別で、test.php?id=<?php echo $VitaeRows['id'] ?>に飛び
156
+
157
+ そこに飛んだら、削除用のSQLを走らせたいのです。