I want my website to post an image as a result of a select option value that includes only text. For instance:
<select name="facebook" id="facebook">
<option value="Facebook"> Facebook </option>
</select>
<button type="submit" name="submit"> Submit </button>
The select tag above shows one option with the value "Facebook". When you choose this option and click submit, I want the website to post an image of the Facebook logo (retrieved from a folder or an image URL) based on the option value that was chosen.
Furthermore I insert the values into a table table_1
, and select the values from the table to echo them on the website. This is the idea of retrieving values and post them as text, but as I said I want to retrieve information but post an image instead.