Are you just interested in getting the IP address of the visitor? IF so, this info is already added to the website's apache log, so you actually only need to go look through the log, or, if you want to make it a bit more "surgical", you can write the 'REMOTE_ADDR' variable straight into a mysql table, without the added trouble of mailing , specially with using mailto: ; this actually opens up a "new message" window on the client's side's e-mail program, and the user has to click on "send", if he doesn't, you won't get the mail.... So, if it's crucial stuff, don't rely on the client ( that's actually the golden rule for all apps...)
On Tue, 2002-11-05 at 13:05, Marek Kilimajer wrote: > <body onload="yourForm.submit()"> > <form name="yourForm" action="mailto:address@;server.net"> > <input type="hidden" name="ip" value="<?= $_SERVER['REMOTE_ADDR'] ?>"> > </form> > </body> > > is this what you want? This is too complicated, why not sending it from > the server? > > Chris Shiflett wrote: > > > This type of question should be addressed to > > [EMAIL PROTECTED] I am forwarding it there. > > > > Also, please correct your reply-to address. > > > > Chris > > > > Luke wrote: > > > >> Hello, > >> > >> On my website, I have a php form which submits the global Ip address > >> of the > >> computer its on to a specific email address, I want it to automatically > >> "click" the submit button on the website without questions, it > >> already has > >> an email address specified in it, but you have to open the document and > >> click "submit".. > >> > >> any ideas? > >> > >> Thanks, > >> > >> Luke > >> > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php