1

i have input field for emails and i need the data that was entered by the user to be shown on another page

<input style="width:456px; height:30px;" class="adv_onus_fields" name="adv_onus_email" autocomplete="off" type="email" placeholder="'.__("Email","Advinim").'"/>

1
  • it is a wordpress project and im editing in the theme editor because the developer didnt use any of wordpress features and he added everything in the pages, the client need the emails to be shown on administrator page Commented May 10, 2019 at 8:32

1 Answer 1

2

You simply have to wrap the input into a form and specifiy a target like this.

<form action="/destination.php" method="get">
<input style="width:456px; height:30px;" class="adv_onus_fields" name="adv_onus_email" autocomplete="off" type="email" placeholder="'.__("Email","Advinim").'"/>>
<input type="submit" value="Submit">   
</form>

On the page you want to use the variable write $_GET['adv_onus_email'] to access it.

Another way of doing it is starting a session with session_start() and saving the variable in the $_SESSION array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.