I want to make SPECIFIC FORM
-
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::((:((
-
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::((:((
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[ -
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[ -
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. :)