0
<form action="update.php" method="post">

<input type="text" name="userdate" value="<?= $b ?>" /> 

<input type="submit" name="subjoin" value="Update">

</form>

and update.php

$c= $_POST["$b"];
echo "value".$c; //its not working
2
Contributors
1
Reply
3
Views
8 Years
Discussion Span
Last Post by djjjozsi
0
<?php
$b="my value!";
?>
<form action="update.php" method="post">
<input type="text" name="userdate" value="<?php echo $b ?>" /> 
<input type="submit" name="subjoin" value="Update">
</form>

and update.php

if(!empty($_POST["userdate"]))
{
$c= $_POST["userdate"];
echo "value".$c; //its not working
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.