I want to pass an email value in a textbox from welcome page to register page in Laravel without using the database. I tried the following code in simple PHP page it works fine but when I use in Laravel 5.7 page it shows an error.
Welcome page
<form method="POST" action="register">
<input type="text" size="40" name="email">
<input type="submit" name="submit">
</form>
Register Page
<form method="POST" action="register">
<input type="email" size="40" name="reg_email" value="<?php echo $_POST['email']; ?>">
<input type="submit" name="submit">
</form>
I want that when I write an email in welcome page form textbox & submit, it shows or display in a register page form email textbox without using Database.
@csrfto both forms.