If you just want to send data on HTML page then it will be possible through jquery. You can use below code for your requirement.
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(document).on('click', '#bloodgp', function() {
var get_selected_option_value = $(this)val();
window.location = 'your_html_page_name/bloodgp=' + get_selected_option_value;
});
});
</script>
</head>
<body>
Blood Group:
<select name="bloodgp" id="bloodgp" <?php echo($data['user_bloodgroup']==$bloodgp)?'checked':'' ?>>
<option value="A+">A+</option
<option value="B+">B+</option>
<option value="AB+">AB+</option>
<option value="O+">O+</option>
<option value="A-">A-</option>
<option value="B-">B-</option>
<option value="AB-">AB-</option>
<option value="O-">O-</option>
</select>
</body>
</html>
You can get the value from URL using above code.
Above code is for your requirement. But i am suggesting you to send the value to php file instead of HTML file. it will be more feasible for you.
If you want send data to php file then you can use ajax for that. You can find the below code with ajax.
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$(document).on('click', '#bloodgp', function() {
var get_selected_option_value = $(this)val();
window.location =
$.ajax({
url: 'your_page_page_name.php',
type: 'POST',
dataType: 'json',
data: {bloodgp: get_selected_option_value},
})
.success(function(response) {
console.log("you have successfully sended the data");
})
});
});
</script>
</head>
<body>
Blood Group:
<select name="bloodgp" id="bloodgp" <?php echo($data['user_bloodgroup']==$bloodgp)?'checked':'' ?>>
<option value="A+">A+</option
<option value="B+">B+</option>
<option value="AB+">AB+</option>
<option value="O+">O+</option>
<option value="A-">A-</option>
<option value="B-">B-</option>
<option value="AB-">AB-</option>
<option value="O-">O-</option>
</select>
</body>
</html>
You can get value by using <?php print_r($_POST); ?>
on your recieving php page.