i have this simple form that posts two variables ($id and $price) to the next page (price_change_confirm.php)....i can access the $price variable on the next page, but i cannot access the $id variable.... ive done tons of these forms before, and everything looks right to me, so im sure im missing something stupid, any help would be appreciated
here is the form code:
echo "<form action='price_change_confirm.php' method='post'>\n";
echo "<input type='radio' name='edit_price_id' value='$id'>";
echo "<table><tr><td>$title</td>
<td>$author</td>
<td>$<input type='text' name='edit_price' value='$price'></td></tr></table>";
echo "<input type='submit' name='change_price' value='Change Price'></form>";
now on the next page i assign variables to the posted variables, and echo to test:
$new_price = $_POST['edit_price'];
$book_id = $_POST['edit_price_id'];
echo "id is $book_id and price is $$new_price";
the new price shows up but the id does not, like this "id is and price is $99.99".... i cant figure out why i can access one variable and not the other.... any help would be greatly appreciated (sorry for the newb question)