Hey guys,
How can I make it so a certain variable is sent when a hyperlink is clicked on?
Before I had it so there was a drop down menu and you can select an option and click submit. But how can I make it so the link itself is the submit button and it automatically stores a certain value when clicked on!
Before I had something like this:
<html>
<body>
<form action=“randompage.html” method=‘post’>
<select name=“cars”>
<option value=“volvo”>Volvo
<option value=“saab”>Saab
<option value=“fiat”>Fiat
<option value=“audi”>Audi
<input type=‘submit’ value=‘Submit’ name=‘submit’>
</select>
</form>
</body>
</html>
Now I want each of these to be hyperlinks which sent out their value once clicked on! This is so I can get rid of the drop down menu and submit button. Many thanks.