About 2,440,000 results
Open links in new tab
  1. how to echo select option value in the php page without AJAX?

    Jul 7, 2014 · basically when an option is selected, the value of that option should be echo-ed on the page. My current code is this: <?php. foreach ($postResults as $postResult) { echo …

  2. HTML select option set selected default echo get value php

    May 7, 2025 · I have a simple HTML form with a simple select like this <select name="myselect" selected="<?php echo $_GET['brand'];?>"> <option value="" <?php if($brand== "") echo …

  3. php - Echo selected option - Stack Overflow

    Dec 18, 2012 · How would I echo a selected option in php? I am using HTML to create a menu list (Buy and Sell), and I want to echo 'I want to buy the book' if someone choose "buy", or echo 'I …

  4. PHP Select Option - PHP Tutorial

    In this tutorial, you will learn how to use the select element to create a drop-down list and a list box. and how to get the selected values from the select element in PHP.

  5. PHP: Get Value of Select Option and Radio Button | FormGet

    Example contains select option, radio button PHP script to get a single or multiple selected values from given HTML select tag.

  6. Show selected option value from Array & MySQL DB using PHP

    Dec 20, 2019 · In this tutorial, you will learn how to create an array of categories, display the values inside HTML select box and have selected options pre-defined with PHP and also I will …

  7. How to get selected option value in PHP - The Tech Thunder

    Jul 21, 2023 · To get the selected option value from an HTML form in PHP, you need to use the $_POST or $_GET superglobal arrays, depending on the form’s method attribute (post or get). …

  8. PHP Select Option: A Comprehensive Guide - PHP-compiler

    Feb 20, 2024 · In this comprehensive guide, you will delve into the art of harnessing the <select> element’s power to craft both dropdown menus and list boxes. Additionally, you will uncover …

  9. How to Use PHP Select Option: The Essential Guide for Developers

    Dec 27, 2023 · When combined with PHP backend processing, they become a versatile method for managing user input. This comprehensive guide will explore what select options are, how …

  10. How to get selected option value in PHP - Tpoint Tech - Java

    Mar 17, 2025 · Let's take various examples of how to get selected option values in PHP. Write a Program on how to get selected option value in PHP. In the above example, we have created …

Refresh