Converting PHP print code to VB.net

Last post 10-15-2008 2:27 AM by samiwafaa. 0 replies.

Sort Posts:

  • Converting PHP print code to VB.net

    10-15-2008, 2:27 AM
    • Member
      33 point Member
    • samiwafaa
    • Member since 09-23-2008, 6:00 AM
    • Posts 66

    Dear all,

    I have this php print function, I don't understand what it does exactly, can any one help me in writing the same function in vb.net?

    function printerButton( $number )
    {
       
     global $applicationPath,$lang;
      
     $vars = array();
     
     $vars[] = 'b='.$number;
     
        if( array_key_exists( 't', $_GET ) )
         $vars[] = 't='.$_GET['t'];
     
     if( array_key_exists( 'v', $_GET ) )
         $vars[] = 'v='.$_GET['v'];
      
     if( array_key_exists('n', $_GET ) )
      $vars[] = 'n='.$_GET['n'];


     return "$applicationPath/$lang/thank.php?".implode( '&', $vars );
    }

    then on button's click it will perform this script:

    <script "LANGUAGE=QWINSCRIPT">
     FUNC_PRINTER_BUTTON ( 2  2 )
    </script>

Page 1 of 1 (1 items)