*
MysqlからPHPを介して('?' AND'&'を使用して)レコード内の3つの値を取得し、$_GETメソッドを使用して他のフォームに送信するのが好きです。
*`//フォーム送信値form1
$connection=mysql_connect("localhost", "root","");
mysql_select_db("xxxxxx_Database",$connection);
$v= mysql_query("Select * from patient_details order by P_id");
while ($row = mysql_fetch_array($v))
{
echo "<tr><td>".$row['P_id']."</td><td>".$row['P_name']."</td><td>".$row['P_age']." </td><td>"."<a href=Editing_Patient_Detail.php>Edit</a> </td><td><a href=Delete_Patient_Detail.php?P_id=".$row['P_id']."&P_name=".$row['P_name']."&P_age="."row['P_age']".">Delete</a>";
}
mysql_close( $connection);
// form recieving the get values
$connection=mysql_connect("localhost", "root","");
mysql_select_db("Aravind_Database",$connection);
if ($_GET['P_id']!= '')
{
$v= mysql_query(" Select * from patient_details order by P_id");
while ($row = mysql_fetch_array($v))
{
if ($row['P_id'] == $_GET['P_id'])
{
?>
<input type="text" value='<?php $_GET['P_id']?>' /><br>
<input type="text" width="145" value='<?php $_GET['P_name']?>' /><br>
<input type="text" value ='<?php $_GET['P_age']?>' /><br> <?php
break;
}
}
}
// I am recieving only the P_id and P_name values, I can't recieve the P_age value through //get "Sorry friends, while pasting on the website I typed it wrongly (P_age)"
`