Answers for "get input value in php"

PHP
1

get input data in php

<?php
// open it in cmd
// go to file path 
// cmd: php file_name
$a =(int)readline("Enter any value");
$b=0;
// echo $a;
for($i=0;$i<$a;$i++)
{
    echo $i;
    
}
?>
Posted by: Guest on September-06-2021
0

php post variables to another page with submit button php

<html>
<form id="form" action="webAddressYouWantToRedirectTo.php" method="POST">
<input type="hidden" name="expectedPOSTVarNameOnTheOtherPage" value="<?php echo $varYouMadePreviouslyInProcessing ?>">
</form>
<script>
document.getElementById("form").submit();
</script>
</html>
Posted by: Guest on March-26-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

Browse Popular Code Answers by Language