[TYPO3] Log IP Address from Form - SOLVED

Sandy Matheson lists at mathesonuk.com
Wed Jun 6 09:58:46 CEST 2007


No replies - but have finally solved this.

Added to TS Setup:

tt_content.mailform.20.hiddenFields {
ip_address = TEXT
ip_address.data = getenv:REMOTE_ADDR
ip_address.data.insertData=1
}

Sandy

On Tue, 05 Jun 2007 15:00:01 +0100, Sandy Matheson
<lists at mathesonuk.com> wrote:

>Hi,
>
>We have had a number of unsavory emails generated by forms from one of
>our websites and woudl like to display a message on the page with the
>form giving the originators IP Address and stating that it will be
>logged.  We would also like to include this IP address in the email
>that is generated from the form.
>
>Can anyone point me to how to do this?
>
>Many thanks,
>
>Sandy Matheson


More information about the TYPO3-english mailing list