Re: Fw: [PHP-DEV] When my PHP file opens, I want it to automatically submit

From: Date: Tue, 05 Nov 2002 11:05:08 +0000
Subject: Re: Fw: [PHP-DEV] When my PHP file opens, I want it to automatically submit
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-122749@lists.php.net to get a copy of this message
<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 php-general@lists.php.net. 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


« previous php.general (#122749) next »