Jump to content

[SOLVED] Running PHP code through a function, or running PHP code that comes from $_POST


Chyea

Recommended Posts

I remember there being a function where something like this could be done, but I can't quite remember what it is exactly or what it is called.

 

example:

 

<?php
if(isset($_POST['postform'])){

   mysteryfunction($_POST['codetorun']);

} else {
   echo"
     <form method='post'>
       <input type='text' value='' name='codetorun' />
       <input type='submit' name='postform' value='Submit' />
     </form>";
}
?>

 

And say the codetorun value that I type in would be something like, echo base64_encode("HEY");

 

Does anybody know what I'm talking about? Can probably clarify better if need be. Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.