I am trying to name fields within a table (on the same line) so I can call them out independently once the user clicks submit and I use the POST statement in the next php doc
Below I am trying to name the column product mx60product, and the field price mx60price. I will then use
echo “$_POST[mx60product]
”;
echo “$_POST[mx60price]
”;
I only want the query on $mx60product to show on the main page btw.
Is this possible?
[php]
<?php $mx60product = mysql_query ("SELECT product FROM mx"); { echo "<select name= 'mx60product'"; } { while ($row = mysql_fetch_row($mx60product)) { print("$row[0]"); } } ?> <?php $mx60price = mysql_query ("SELECT price FROM mx"); { echo "<select name= 'mx60price'"; } ?>[/php]