Need to get the System IP address in PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joansylvia
    New Member
    • Mar 2007
    • 1

    #1

    Need to get the System IP address in PHP

    Hi,
    i have 2 questions here, can any one help me !!

    1. How to get the system ip address php.

    2. i have list of records in a first.php, for each row i have a check box,
    when i click a check box (suppose a product) that row has to be selected and put it in another table( order.db).
    In the next, if i choose another check box(another product), that to be selected and
    put it in the table( order.db ) next to the previous record.

    so how can i achieve this....

    first of all is it possible.. if so help me to do this..
    else tell me any other way to do this task..

    Regards,
    saravanan
    email address removed - moderator
  • Velhari
    New Member
    • Sep 2006
    • 46

    #2
    Hi friend,

    for the first question you use $_SERVER['REMOTE_ADDR'] to get the system ip address.

    for second question also might be possible if you have to use ajax concept....
    Using ajax you have to proceed all the work in the onclick event for check box


    Originally posted by joansylvia
    Hi,
    i have 2 questions here, can any one help me !!

    1. How to get the system ip address php.

    2. i have list of records in a first.php, for each row i have a check box,
    when i click a check box (suppose a product) that row has to be selected and put it in another table( order.db).
    In the next, if i choose another check box(another product), that to be selected and
    put it in the table( order.db ) next to the previous record.

    so how can i achieve this....

    first of all is it possible.. if so help me to do this..
    else tell me any other way to do this task..

    Regards,
    saravanan
    email address removed - moderator
    Last edited by Velhari; Mar 8 '07, 12:11 PM. Reason: Grammatical error

    Comment

    Working...