Answers for "get value from input field in php"

PHP
-1

get text field value in php

<form method="post">
  <input type="text" name="deleteinput" class="button"/>
  <input type="submit" name="deletebtn" class="button" value="Delete single user data"/>
</form>
  // php 
<?php 
    $name = $_GET['deletebtn'];
    echo $name;
?>
Posted by: Guest on November-03-2020
5

how to get input value in php variable

$info = array('Doina', 'brown', 'long');

// Listing all the variables
list($she, $color, $hear) = $info;
echo "$she has $color eyes color and $hear black hair.\n";
Posted by: Guest on August-05-2020
0

get value from input field in php

<form method="post">
  <input type="text" name="deleteinput" class="button"/>
  <input type="submit" name="deletebtn" class="button" value="Delete single user data"/>
</form>
  // php 
<?php 
    $name = $_POST['deleteinput'];
    echo $name;
?>
Posted by: Guest on August-11-2021

Code answers related to "get value from input field in php"

Browse Popular Code Answers by Language