PHP message on the same page -


hi have similar in code;

<html> <head><title></title></head> <body> <form method="post" action="processmaster.php"> <input type="submit" id="testone" name="testone" value="process me"> </form> </body> </html> 

the processmaster.php reads follows;

<?php echo "boom!"; ?> 

now works fine.

but issue once "boom!" appears, appear in separate page(or in page other elements of page not displayed.)

is there possibility/workaround can print message on same page can see process me button visible?

processmaster.php should contain following:

<html> <head><title></title></head> <body> <form method="post" action="processmaster.php"> <input type="submit" id="testone" name="testone" value="process me"> </form> <?php  if($_post['testone'] != null){   echo "boom!"' } ?> </body> </html> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -