LassoBin Banner
Recent Posts
test
66.8 weeks ago
ezk
2476.6 weeks ago
Adam Randall
483.8 weeks ago
Adam Randall
487.2 weeks ago
Greg Hemphill
487.7 weeks ago
Greg Hemphill
491 weeks ago
Greg Hemphill
491 weeks ago
Becca
491 weeks ago
Greg Hemphill
491 weeks ago
Becca
491 weeks ago
Make new post
Lasso Reference
MySQL Reference
Valid HTML 4.0!
 
Posted by Adam Randall on 03/19/2008 22:51:20.
Link
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[
  define_tag( 'Client_Cookies2' );

    local(
      'i',
      'cookies' = null,
      'raw'     = client_header( 'Cookie' ) );

    if( #raw !== false );
      #cookies = array;
      iterate( #raw->split( ';' ), #i );
        #i->trim;
        if( #i->find( '=' ) > 0 );
          #cookies->insert( decode_url( #i->substring( 1, #i->find( '=' ) - 1 ) ) = string( decode_url( #i->substring( #i->find( '=' ) + 1, #i->size ) ) ) );
        /if;
      /iterate;

      return( @#cookies );
    else;
      return( false );
    /if;

  /define_tag;


]

  Post new code below.
Name
Code
Math -61 minus -9 equals