Echo Posted Value
Posted: Mon May 23, 2011 5:01 pm
After I post the industry value I want it to be echoed back out to the user that that is what they selected. Any way to do this without storing the data?
$isset = isset($_POST['industry']); foreach ($industries as $industry) { if (isset($isset) && $industry['industry_id'] == $isset) { echo "<option value=\"{$industry['industry_id'] }\" selected=\"selected\">${industry['industry']}</option>\n"; } else { echo "<option value=\"{$industry['industry_id'] }\">${industry['industry']}</option>\n"; } }