View Full Version : send users ip address when they press submit button
andrewsheldon98
08-15-2002, 04:36 PM
is there a way i can get an html form to send an email to mail@scpa.co.uk with there ip address in the email?
Spookster
08-15-2002, 05:26 PM
So the user is filling out and submitting a form and you want in addition to that to grab their IP and have it sent to you via email?
Where is the contents of the form going to?
andrewsheldon98
08-15-2002, 05:37 PM
the contents of the form is goint me at this email address mail@scpa.co.uk so i can see if people are posting poll results with the same ip address, so as not to update the poll with duplicate results with the same ip address.
Spookster
08-15-2002, 05:54 PM
So just add a hidden field to the form. Populate that field with $REMOTE_ADDR. And whatever script you are using to handle the rest of the form contents just add in the hidden field.
Can't help you much without more details or script you already have.
andrewsheldon98
08-15-2002, 11:17 PM
thanks anyway but ive already done it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.