I have a form on my homepage that takes in one input. After the form is submitted it redirects to a new Wordpress page test123
that gets its content from test-template.php
The content is unique for each person (generated from the users input).
So I am trying to find a way to assign a unique URL for the content as soon as the form is submitted, and then show the content on that URL.
Edit (extra details):
<form method='post' action='<?php bloginfo('url'); ?>/test123/' >
Email: <input type="text" name="email" aria-required="true" required>
<input type="submit">
</form>
After the form is submitted, the page reloads to example.com/test123
, instead it should reload to example.com/RANDOM-ID