Hello, I have a simple HTML table generated using Mysql and PHP:

type    region  platform    price $/h
m3.xlarge   ap-northeast-1  windows 0.980
hs1.8xlarge ap-northeast-1  rhel    5.810
hi1.4xlarge ap-northeast-1  rhel    3.960
m1.medium   ap-northeast-1  windows 0.230
cg1.4xlarge ap-northeast-1  rhel    4.450
cc2.8xlarge ap-northeast-1  rhel    3.100
c1.xlarge   ap-northeast-1  rhel    0.855
c1.medium   ap-northeast-1  rhel    0.254
m2.4xlarge  ap-northeast-1  rhel    2.135
m2.2xlarge  ap-northeast-1  rhel    1.079

I would like to choose one row of my table, and send two or more contents throught GET or POST to another page, using the easy way as possible.

Today, I can send only one parameter using "radio" button like this:

<form method="GET" action="table.php">
$query="SELECT * from prices ORDER BY region limit 10";
while ($linha = mysql_fetch_array($result)) {
     <td><input type="radio" name="region"  value="<?php echo $linha['region'] ?>" /></td>
     <td><?php echo $row['type']; ?></td>
     <td><?php echo $row['region']; ?></td>
     <td><?php echo $row['platform']; ?></td>  
     <td><?php echo $row['price']; ?></td>                                      


<input type="submit" value="Submit"/>       

So, if I click in "Submit" button I got:


How can I get, for example:


PS: I would like to be able to sent the values "type" AND "region" to another page :)

Thanks a lot

3 Years
Discussion Span
Last Post by Alibi Ghazi
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.