I have a form as shown below.
<form role="form-horizontal" method="post" action="pacific.php" style="width 70%">
<div class="input-group input-group-lg">
<span class="input-group-addon" id="sizing-addon1">Name:</span>
<input type="text" class="form-control" placeholder="Name" id="name" aria-describedby="sizing-addon1">
</div>
<button type="submit" class="btn btn-default">Next ></button>
</form>
It submits name
to pacific.php
. On pacific.php
I have php code first getting the input from name
and then I have an echo
statement as show below.
<?php
$n = $_POST["name"];
echo "Hello, $n.";
?>
Yet on the page, all it echos is "Hello, .". I'd like it to echo "Hello, (persons name)."