Current location: Hot Scripts Forums » Programming Languages » PHP » IP Address in Hidden Box


IP Address in Hidden Box

Reply
  #1 (permalink)  
Old 10-19-05, 09:55 PM
new2php's Avatar
new2php new2php is offline
Newbie Coder
 
Join Date: May 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
IP Address in Hidden Box

I have this code in my forum:
Code:
<INPUT TYPE="HIDDEN" NAME="User_IP_Address" VALUE="IP Address Here">
And where it says VALUE="IP Address Here" I want to have the users IP Address there, how do I do this?
Reply With Quote
  #2 (permalink)  
Old 10-19-05, 09:57 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
try this
PHP Code:

<INPUT TYPE="TEXT" NAME="User_IP_Address" VALUE="<?php echo $_SERVER['REMOTE_ADDR']; ?>">
Reply With Quote
  #3 (permalink)  
Old 10-19-05, 10:12 PM
Keith's Avatar
Keith Keith is offline
Community Liaison
 
Join Date: Feb 2004
Posts: 1,232
Thanks: 1
Thanked 11 Times in 11 Posts
Remember to make the type hidden in that example.
Reply With Quote
  #4 (permalink)  
Old 10-19-05, 10:21 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
Sorry, forgot to make it hidden.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php and ip address spidadesign PHP 0 05-16-05 05:05 PM
Refresh IP Address thorchan Visual Basic 0 04-16-05 02:30 AM
Get IP Address dihan JavaScript 10 04-03-05 10:54 AM
Regular Expression IP Address Replacement CMIVXX PHP 3 11-20-04 07:27 AM
1 ip address only aemobile PHP 2 11-16-04 05:24 PM


All times are GMT -5. The time now is 06:17 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.