how to save a post in the variable on the same page

Asked

Viewed 495 times

-1

galera and the following I have a field number on my page and I want to pick it up and send the value typed on the same page as I can get the value typed on the same page without using jquery or javascript I want to get the value from it by php I need to get this value and immediately pass on the same page how can I do this?

  • I swear I tried to understand, but I couldn’t.

  • It would be better not to comment on your doubt. Because the question already speaks exactly what you want. But I would improve to: "How to store the POST value in a variable"

1 answer

0


You can use this way:

<?php

if(isset($_POST['variavel'])){
    $variavel = $_POST['variavel'];
}
  • this way she will pick up the variable on the same page and soon after I can pass her?

  • the post rolling on the same page he will store @Leonardocosta I tried to explain in the simplest way possible ta, in case you have not understood I ask a good link in the tutorials to understand the functioning of the language.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.