aspがフォームの値を引き継いで、別のリンクされたページにプラグインできることを私は知っています。PHPPDOスクリプトでこれを行う方法はありますか?たとえば、モックサイトに新しいメンバーごとに新しいテーブルエントリがあります。レコードごとに、同じ行のメンバーの値を持つ「メンバープロファイル」と呼ばれるフォームボタンが作成されます。ボタンをクリックすると、メンバー名を新しいページに移動し、そのphpmyadminテーブルにリンクして、そのメンバーのすべての日付を表示します。私はその権利を説明したと思います。これが私のコードです
$dsn = 'mysql:host=localhost;dbname=averyit_net';
$db_username = "root";
$db_password = "password";
$db = new PDO ($dsn, $db_username, $db_password);
$tablemaker = $db->query("SELECT `cust_profile`.`CustomerName`,
`cust_profile`.`CustomerType`, `cust_profile`.`ContractHours` FROM `cust_profile` ORDER
BY `CustomerName`");
while ($rows = $tablemaker->fetch(PDO::FETCH_ASSOC)) {
?>
<table width="75%" border="1" cellspacing="0" align="center">
<th width="15%" height="0%" bgcolor="#819FF7"> </th>
<th width="35%" height="0%" bgcolor="#819FF7"> </th>
<th width="30%" height="0%" bgcolor="#819FF7"> </th>
<th width="20%" height="0%" bgcolor="#819FF7"> </th>
<tr>
<form method="post" action="edit_cust.php" >
<td align="center">
<span style="font-size: 9pt"><font size="1" face="Verdana">
<input TYPE="submit" NAME="dothis0" value="Customer Profile">
</font></span><font face="Verdana"><font size="2">
</font>
<input type="hidden" name="custID" value="<?php echo $rows['CustomerName']; ?>">
</font>
</td>
</form>