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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php