|
Posted by J.O. Aho on 03/06/07 15:10
Tamarin wrote:
> "Rik" <luiheidsgoeroe@hotmail.com> wrote in message
Please use a proper news client and if your client can't strip away "-- " then
do that manually.
>> echo '<input type="hidden" name="ip" value="'.$_SERVER{'REMOTE_ADDR'].'">';
>> Then again, that seems highly unreliable, what problem are you trying to
>> solve with this hidden form field?
> tried including the line in my form, but no avail. I think I know not how
> to integrate php & html, my form is writtin in html with a js form
> validator.
I guess your page is called something.html or something.htm, you need to
rename the file to something.php before the server will pass the file to php
(and only if the server has php enabled).
If you have done it right that far, a good option is to post your code, so
people can check what is wrong.
> what I am trying to achieve is to circumvent the normal PHPBB registration
> form, and have prospective members fill in a customized HTML for
> registration that I handle on a case-by-case basis. The form works fine in
> showing the "image" of the visitors IP, but I just don't know how I can have
> the IP sent to me as part of the form.
If the page which your form-action points at is a php script, there is no need
to send the IP in the form.
--
//Aho
Navigation:
[Reply to this message]
|