help using grabbing post value and using it inside form imput hidden value
Hi all. i am passing 3 values to a second page and i want to use it inside html in form imput as hidden value instead of ????? . Could any one show me how i can grab the passed value and place it instead of ?????.Thanks
PHP Code:
<php?
$name = $_POST['cmdname'];
$password = $_POST['cmdpassword'];
$secretanswer = $_POST['cmdsecretanswer'];
echo $name;
echo "<br>";
echo $password;
echo "<br>";
echo $secretanswer;
echo "<br>";
?>
<html>
.........
.........
.........
<input type="hidden" name="cmdname" value="????? " />
<input type="hidden" name="cmdpassword" value="????? " />
<input type="hidden" name="cmdcmdsecretanswer" value=" ?????" />
Re: help using grabbing post value and using it inside form imput hidden value
Try something like this:
PHP Code:
<php
$name = $_POST['cmdname'];
$password = $_POST['cmdpassword'];
$secretanswer = $_POST['cmdsecretanswer'];
?>
<html>
.........
.........
.........
<input type="hidden" name="cmdname" value="<?=$name;?>" />
<input type="hidden" name="cmdpassword" value="<?=$password;?>" />
<input type="hidden" name="cmdcmdsecretanswer" value="<?=$secretanswer;?>" />
-- Ryan Jones