How to display Form values after login on another page
-
Hi,
I have created a bootstrap form with an input field and a button. I want to display Form values after login on another page. I have added following codes:
Page 1
<form method=”POST” action=”test.php”>
<div class=”form-group”>
<label for=”reward”>Reward</label>
<input type=”number” class=”form-control” name=”reward” min=”1″ aria-label=”Amount (to the nearest dollar)” placeholder=”Amount” required>
</div>
<button type=”submit” class=”btn btn-success”>Continue</button>
</form>Page 2 (test.php)
<?php
if(isset($_POST[‘reward’])) {
echo $_POST[‘reward’];
}
?>With the above codes I am getting the the form values displayed on another page. But I want to add a login process in between.
Means, If on Page 1, a person entered a “desired amount” in form field and click the button. He should be prompted for login/register. After completing the process of Login/Register he should be redirected to Page 2 and Page two should display the “desired amount”.
How to do Plz help.
Thanks
- The topic ‘How to display Form values after login on another page’ is closed to new replies.