Using Form Data on a separate page
-
Hello,
I’m working on a project for university and therefore its not a published website, but I’m using the form for users to submit their reviews on books to the website. I want users to be able to see their reviews and form data on a separate page.
I’ve been trying to get this way to work for me but cant seem to:
https://premium.wpmudev.org/forums/topic/forminator-pro-transfer-fields-to-the-success-page/#post-3708751:
The following is info of what I’ve been doing:My after submission redirect URL: https://localhost/wptest/reviews?author={name-1}
The author field-id: {name-1}
The code I’m using in the reviews page where I want the form data to show up:
$author = $_GET[‘name-1’];if($author){
echo ‘The author is ‘. $author;
}else{
echo ‘The form was not submitted, or you accessed the page directly’;
}What comes up after submitting the form:
https://localhost/wptest/reviews/?author=Jane%20doeThe form was not submitted, or you accessed the page directly
- The topic ‘Using Form Data on a separate page’ is closed to new replies.