Thanks @bcworkz
I have created an endpoint by name “contribute”.
I have updated the code as below Plz see:
Page 1
<form method=”POST” action=”contribute”>
<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 (contribute)
<?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.