Re: auto submit

From: Date: Wed, 03 Apr 2002 09:42:40 +0000
Subject: Re: auto submit
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91287@lists.php.net to get a copy of this message
At 03.04.2002 11:22, you wrote:
Is the folowing possible to do? I fill in a form and press submit. Then I read a record from a database. With this data it submits to the read submits url. After 10 seconds, it reads the next record and submits that data. etc etc So I don't have to push submit each time I want to submit. After 10 seconds it read the next record and submits again. Could this be done? So yes, how?
You can do this, if your clients browser has JavaScript enabled. Then you could use JavaScript -> www.javascript.com. And again, PHP is on your server and is not able to push something to your client except he/she asked for it (that´s why you have to use JavaScript). To get your page refreshed (thi only askes about a new copy of your page) you could use header() or a metatag like <meta http-equiv="refresh" content="10; URL=yourpage"> You can place this meta anywhere in your code (BUT that´s not html-conform, but works on the main browsers, (don´t know about NS 6 and mozilla)) HTH Oliver

« previous php.general (#91287) next »