Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-09-2005, 09:09 AM Forms
crapweasel's Avatar
Average Talker

Posts: 16
Trades: 0
Hi,
I was wondering if there is a way to make it so that when someone fills out one of my forms and send it to me it shows there IP address.
Thanks
crapweasel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-09-2005, 10:25 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
not with HTML

You can with SSI (.shtml)
Code:
<input type="text" name="ip" value="<!--#echo var="REMOTE_ADDR"-->">
or PHP (.php)
Code:
<input type="text" name="ip" value="<? echo $_ENV["REMOTE_ADDR"]?>">
or ASP (.asp)
Code:
<input type="text" name="ip" value="<%=request.servervariables("REMOTE_ADDR")%>">
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-09-2005, 10:32 AM
akratellio's Avatar
Experienced Talker

Posts: 30
Location: Berlin Germany Europe World
Trades: 0
hi,

you can get the ip by using this: $_SERVER['REMOTE_ADDR'].

put this code into a input type='hidden' construct and name it.

like this:

Code:
<input 
  type="hidden" 
  value="<?php $_SERVER['REMOTE_ADDR'];?>" 
  name="..."  
/>
mfg

akratellio
__________________
I'm always lying...
Ich lüge immer...

Please login or register to view this content. Registration is FREE
akratellio is offline
Reply With Quote
View Public Profile Visit akratellio's homepage!
 
Old 08-09-2005, 11:02 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Remember by doing it that way that it would be fantasticly easy to circumvent. If you don't want it easy to forge, then put the above code in with the code that deals with processing the form.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Forms
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31249 seconds with 12 queries