Re: Forms
| From: | Robert Cummings | Date: | Tue, 12 Aug 2003 14:25:28 +0000 |
| Subject: | Re: Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159282@lists.php.net to get a copy of this message | ||
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. |
`---------------------------------------------'