I want to send the selected item value along with some attribute (stud_name) value. Is there any functionality in PHP to do so?
Here is the example one.
<form name="add">
Age:
<select name="age">
<option value="1" stud_name="sre">23</option>
<option value="2" stud_name="sam">24</option>
<option value="5" stud_name="john">25</option>
</select>
<input type="submit" name="submit">
</form>
You will have the selected value in
$_POST['age'], e.g.1_sre. Then you will be able to split the value and get the'stud_name'.