PHP: HTML: send HTML select option attribute in POST

前端 未结 5 410
走了就别回头了
走了就别回头了 2020-12-30 00:37

I want to send the selected item value along with the some attribute (stud_name) value. Is there any functionality in PHP to do so? Here is the example one.

         


        
5条回答
  •  既然无缘
    2020-12-30 01:35

    You can do this with JQuery

    Simply:

       
    Age:

    Add this code in Header section:

    
    

    Now JQuery function

    
    

    you can use both values as

    $name = $_POST['name'];
    $value = $_POST['age'];
    

提交回复
热议问题