redirect button to url created with variables
-
Hello,
I have this code:
<form action=”https://dev.mitbtennis.com/register/1/1″ method=”post”>
<input type=”submit”>
</form>However, what I want to do is replace “https://dev.mitbtennis.com/register/1/1” with a variable like:
$regionURL = “dev.mitbtennis.com/register/1/” . $current_user_id . “<br>”;<form action=”‘regionURL'” method=”post”>
<input type=”submit”>
</form>When a user clicks on the button, they are redirected to a url where the last part of the url is their user id.
I am using Elementor </> HTML Element.
How can I write the code to do what I want? Is this even possible?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘redirect button to url created with variables’ is closed to new replies.