Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. I want to make SPECIFIC FORM

I want to make SPECIFIC FORM

Scheduled Pinned Locked Moved Web Development
javatoolshelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ankur0101
    wrote on last edited by
    #1

    Here is ankur. i m making 1 form using MS-Access. In that following are the fields : =============================================== First Name : [text Box] E-main ID : [Text Box] Comments : [Text Box] Your IP : [label with Java script] Your Browser : [label with Java script] Time : [label with Java script] Date : [label with Java script] [Submit Button] [Reset Button] =============================================== In the above form i got almost upto comments im also having javascripts for IP ,Browser But i cant see the IPThat means,,,,,,,,,,,,,,,,,,,,,, when i open page in Web Browser , i cant see my IP, even i uploaded that page still im not able to see it. Plzzzzzzzzz help me as early as possible... :sigh::(:(:(:(:(:(:sigh::sigh::sigh::((:((

    M 1 Reply Last reply
    0
    • A ankur0101

      Here is ankur. i m making 1 form using MS-Access. In that following are the fields : =============================================== First Name : [text Box] E-main ID : [Text Box] Comments : [Text Box] Your IP : [label with Java script] Your Browser : [label with Java script] Time : [label with Java script] Date : [label with Java script] [Submit Button] [Reset Button] =============================================== In the above form i got almost upto comments im also having javascripts for IP ,Browser But i cant see the IPThat means,,,,,,,,,,,,,,,,,,,,,, when i open page in Web Browser , i cant see my IP, even i uploaded that page still im not able to see it. Plzzzzzzzzz help me as early as possible... :sigh::(:(:(:(:(:(:sigh::sigh::sigh::((:((

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      ankur0101 wrote:

      i m making 1 form using MS-Access

      Are you working in MS-Access project or Web project that is using MSAccess as an backend?? If your project is written in MS-Access, forget about Javascript. If not, we can continue ...

      ankur0101 wrote:

      Your IP : [label with Java script]

      I'm not sure it can be done with pure Javascript. I used to do that from ASP.NET code. Example with (ASP.NET), Request.UserHostAddress(); OR. Context.Request.ServerVariables ["REMOTE_ADDR"] OR. Request.ServerVariables("HTTP_X_FORWARDED_FOR"); Example with (PHP), // This part gets the IP var ip = ''; // This part is for an alert box alert("Your IP address is "+ip); Ref: http://javascript.internet.com/user-details/ip-address.html[^] Example with pure Javascript (I haven't tried yet so not sure whether it gonna work or not) //written by W.Moshammer function yhostip(){ if((navigator.appName == "Microsoft Internet Explorer") && ((navigator.appVersion.indexOf('3.') != -1) || (navigator.appVersion.indexOf('4.') != -1))) document.write("Not with MS IE 3.0/4.0"); else { window.onerror=null; yourAddress=java.net.InetAddress.getLocalHost(); yourAddress2=java.net.InetAddress.getLocalHost(); yhost=yourAddress.getHostName(); yip=yourAddress2.getHostAddress(); document.write("Your host name is "+yhost); document.write(" Your IP address is "+yip); } } Ref: http://stud1.tuwien.ac.at/~e9125168/javas/jhostip.html[^]

      ankur0101 wrote:

      Your Browser : [label with Java script]

      Try this code ~ navigator.appName More Info : Browser detect[

      A 1 Reply Last reply
      0
      • M Michael Sync

        ankur0101 wrote:

        i m making 1 form using MS-Access

        Are you working in MS-Access project or Web project that is using MSAccess as an backend?? If your project is written in MS-Access, forget about Javascript. If not, we can continue ...

        ankur0101 wrote:

        Your IP : [label with Java script]

        I'm not sure it can be done with pure Javascript. I used to do that from ASP.NET code. Example with (ASP.NET), Request.UserHostAddress(); OR. Context.Request.ServerVariables ["REMOTE_ADDR"] OR. Request.ServerVariables("HTTP_X_FORWARDED_FOR"); Example with (PHP), // This part gets the IP var ip = ''; // This part is for an alert box alert("Your IP address is "+ip); Ref: http://javascript.internet.com/user-details/ip-address.html[^] Example with pure Javascript (I haven't tried yet so not sure whether it gonna work or not) //written by W.Moshammer function yhostip(){ if((navigator.appName == "Microsoft Internet Explorer") && ((navigator.appVersion.indexOf('3.') != -1) || (navigator.appVersion.indexOf('4.') != -1))) document.write("Not with MS IE 3.0/4.0"); else { window.onerror=null; yourAddress=java.net.InetAddress.getLocalHost(); yourAddress2=java.net.InetAddress.getLocalHost(); yhost=yourAddress.getHostName(); yip=yourAddress2.getHostAddress(); document.write("Your host name is "+yhost); document.write(" Your IP address is "+yip); } } Ref: http://stud1.tuwien.ac.at/~e9125168/javas/jhostip.html[^]

        ankur0101 wrote:

        Your Browser : [label with Java script]

        Try this code ~ navigator.appName More Info : Browser detect[

        A Offline
        A Offline
        ankur0101
        wrote on last edited by
        #3

        OK i got u but cn u give me example of this1

        M 1 Reply Last reply
        0
        • A ankur0101

          OK i got u but cn u give me example of this1

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          ankur0101 wrote:

          but cn u give me example of this1

          What do you mean? :O

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups