|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Send PC Name with Form
Hi, I'm not sure which section this would fit into.
I would like to know if it is possible to send the PC Name with a form. I can send the IP Address with PHP & Perl but would like the PC Name aswell. Thanks for any help ![]() |
|
#2
|
|||
|
|||
|
What do you mean by PC Name? Do you mean the network name of the computer? If that is what you mean that is something that is really for local area networks and not somethin that you have access to really. What are you using to submit your form? If you are using PHP, then check out PHP.net for documentation on what Server variables you have access too.
|
|
#3
|
||||
|
||||
|
do a name lookup on the REMOTE_ADDR
__________________
Robert. |
|
#4
|
|||
|
|||
|
I do have access to PHP. REMOTE_ADDR is an IP address. What will a name lookup display?
A PC Name? A Server Name? Thanks for the info |
|
#5
|
||||
|
||||
|
the registered domain name of the client if it's known.
check the man pages for nslookup for a client interface. from PHP, check out gethostbyaddr() the IP address might not be registered with DNS and if a proxy is being used you will almost certainly get the IP address of the proxy not the client. short of asking the user however this is likely to be your best chance. it's probably worth doing a search on this and other forums too... you never know what you might find ![]() |
|
#6
|
|||
|
|||
|
This would be used for a Company Intranet.
I have found some scripts that utilise the Windows Scripting Host to get the PC Name. Sounds a little unsecure though. Thanks for the help ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Send PC Name with Form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|