----- Original Message ----- From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Kris Reid" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 12:25 AM Subject: Re: [PHP] Forms
> If I understand your question correctly it sounds like you want to > populate a database on Server A with data residing in a database on > server B via a form hosted on server A *grin*. Obviously this is > tedious, and if there are a lot of entries then I would suggest writing > a script to populate and submit the form automatically. If you are lucky > everything will be done via HTML GET method (URL parameters); however, > it is more likely that it uses the POST method. You can do some reading > into posting data via HTML request headers, or you can look and see if > there is a class that does what you want in PEAR or PHP Classes. > > HTH, > Rob. > > > On Tue, 2003-08-12 at 10:18, Kris Reid wrote: > > I'm having trouble explaining this so please bare with me. > > > > Say there is a form hosted on server A on a web page > > Something simple like > > > > <form action="submit.php" method="post" onSubmit="window.onunload=null;"> > > <input name="data" size="25" value="" /></td> > > <input type="submit" value="submit" /> > > </form> > > > > > > > > I have the data on server B in a mysql database that needs to be inserted via that form. > > I have written a script that will grab one record and submit it via the form. > > The only problem is I have to keep going back and refreshing my web page to get it to submit another record. > > > > Is there a way of doing this? Please note I have no access to Server A so I can't just edit there database. Does this make sense? :) > > > > Thanks > > > > Kris > > -- > .---------------------------------------------. > | Worlds of Carnage - http://www.wocmud.org | > :---------------------------------------------: > | Come visit a world of myth and legend where | > | fantastical creatures come to life and the | > | stuff of nightmares grasp for your soul. | > `---------------------------------------------' > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > Robert Thanks for explaining my situation better. That's spot on. I have php grabbing data from my database and filling the form. Then JavaScript automatically submits the form. However once the form is submitted. Server A forwards the browser else where. So I have to type in my URL again. Is there some way I can more or less dump my database into theirs via the form. There are a #$%^ load of records. Thanks Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php