Form alias callout

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]

I sounds like you want the data in 2 separate dropdowns? That just seems odd, because how would you know which product matches which price?

I would put both items in the same dropdown.

So it shows like this…

Car - $20
Bike - $10

Then you won’t be able to call out both seperately the way you want to, but you can get the value of the dropdown and parse it, to get the two unique values you want.

Sponsor our Newsletter | Privacy Policy | Terms of Service