Base64 enocde all POST requests

Discussion in 'PHP' started by AT-XE, Jul 13, 2009.

  1. #1
    Hey DPers,
    I've got a problem here and I need your help.

    I was wondering if there is any way to encode (via base64) all of the POST values (but not titles) so that a code like the following will output the origional non-encoded value.

    <?php
    echo base64_decode($_POST['xyz']);
    ?>
    Code (markup):
    Thank you.
     
    AT-XE, Jul 13, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could you loop through the post values and do it, say:

    foreach($_POST as $P){
    base64_decode($P);
    }
     
    wd_2k6, Jul 13, 2009 IP