I would like to create a select dropdown form and send information in a POST variable.
What do I set action=""?
I've tried action=


I have the code:
<form action=<?php current_path(); ?> method="POST">
<select name="status">
  <option value="available">Available</option>
  <option value="sold">Sold</option>
<input type="submit"/>
$product_status = $_POST['status'];
echo $product_status;

but nothing is showing for $product_status.
How do I send a POST variable?


LTech’s picture

Title:sent a POST variable what to set for action=""?» POST variable what to set for action=""?