1 6 6

: 3- | get

  1. #1
    .:: ::.
    Mint 13
    GNOME

    May 2008
    1,381
    1,240
    2,064 709

    3- | get







    : get post

    get





    ...

    ,





    http://www.ayam.ws/





    http://www.ayam.ws/?p=762



    http://www.ayam.ws/?p=758


    p=

    p

    get p



    get







    PHP:
    #!/usr/bin/python
    # -*- coding: utf-8 -*- 

    from bottle import routerunrequest

    @route('/')
    def index():
        return 
    '''<a href='/hello/sasa'>test name</a> 
        <br>
        <a href='
    /object/123'>test id</a>
        <br>
        <a href='
    /forum?id=1&page=5'>test from</a>
        '''

    @route('/hello/:name')
    def hello(name):
        return 
    "Hello %s!" name
        
    @route('/object/:id#[0-9]+#')
    def view_object(id):
        return 
    "Object ID: %d" int(id)
        
    @
    route('/forum')
    def display_forum():
        
    forum_id request.GET.get('id')
        
    page request.GET.get('page''1')
        return 
    'Forum ID: %s (page %s)' % (forum_idpage)
        
    run(reloader=Truehost='localhost'port=8080


    request





    PHP:
    @route('/')
    def index():
        return 
    '''<a href='/hello/sasa'>test name</a> 
        <br>
        <a href='
    /object/123'>test id</a>
        <br>
        <a href 


    html

    test name
    test id
    test from






    PHP:
    @route('/hello/:name')
    def hello(name):
        return 
    "Hello %s!" name 

    route name



    /hello/:name





    PHP:
    def hello(name



    :
        return "Hello %s!" % name


    http://localhost:8080/hello/sasa

    http://localhost:8080/hello/sultan

    http://localhost:8080/hello/xxx








    PHP:
    @route('/object/:id')
    def view_object(id):
        return 
    "Object ID: %d" int(id
    int

    string





    http://localhost:8080/object/123



    http://localhost:8080/object/sasa

    sasa






    +



    :

    http://localhost:8080/forum?id=1&page=5

    id

    page







    &






    :


    :
    @route('/forum')
    def display_forum():
        forum_id = request.GET.get('id')
        page = request.GET.get('page', '1')
        return 'Forum ID: %s (page %s)' % (forum_id, page)



    id



    :
        forum_id = request.GET.get('id')
    request.GET.get

    id

    forum_id id 1





    1



    :
        page = request.GET.get('page', '1')


    page



    http://localhost:8080/forum?id=1&page=5



    :
    Forum ID: 1 (page 5)
    page

    http://localhost:8080/forum?id=1



    Forum ID: 1 (page 1)

    1







  2. 9 :


  3. #2
    .: :.
    Kubuntu 11.04
    KDE

    Apr 2008
    2,889
    369
    4,099 1,086

    ( )

  4. 2 :


  5. #3
    .:: ::.
    Mint 13
    GNOME

    May 2008
    1,381
    1,240
    2,064 709

    ( )


    +


  6. 2 :


  7. #4
    .: :.
    X11

    Jun 2009
    5,886
    6,355
    6,854 2,860
    1

    ɡ !!
    !

    --
    IRC: Fakhouri



  8. :


  9. #5
      muStafa.haSsan
    Mint
    Cinnamon

    Jan 2012
    125
    22
    94 29

    ,,,
    ,,
    ,,

  10. muStafa.haSsan :


  11. #6
    GNOME

    May 2017
    1
    0
    0 0



    PHP python HTML

: 1 (0 1 )

  1. [] 5- |
    .: :.
    : 8
    : 02-02-2013, 07:34 PM
  2. [] 4- | post
    .: :.
    : 2
    : 18-11-2011, 01:19 PM
  3. [] ...
    .: :.
    : 5
    : 02-08-2009, 03:13 PM
  4. [] udev root
    mahioo geek .: :.
    : 3
    : 08-05-2009, 06:04 PM
  5. []
    m_fighter .: :.
    : 3
    : 05-10-2008, 07:43 AM