Tricky one - copying data from one form to another

  • klorpet
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 29, 2006
  • Posts: 9
  • Loc: Australia
  • Status: Offline

Post November 16th, 2007, 8:48 pm

Hey all,

I've got a bit of a tricky one for you all, wondering if anyone can solve it.

I've got a form that visitors fill out and when they hit submit, I want to open another website altogether and fill out a similar form with the details the visitor supplied. Is this possible and if so, how would you do it?

Thanks,
Ben.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 16th, 2007, 8:48 pm

  • JasonStanley
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Nov 15, 2007
  • Posts: 126
  • Loc: London, England
  • Status: Offline

Post November 17th, 2007, 3:49 am

Its very easy actually, just set the 1st forms action to the second forms URL. Then on the second site have

value="<?php $_POST['value'] ?>"

or whatever depending on the type of input.
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7106
  • Loc: Ozzuland
  • Status: Offline

Post November 17th, 2007, 10:50 am

unless you are talking about another site that you don't own?
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • klorpet
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 29, 2006
  • Posts: 9
  • Loc: Australia
  • Status: Offline

Post November 18th, 2007, 5:05 pm

Thanks JasonStanley and Bogey for your replies.

That's exactly the problem, it's a site I don't own or control. Any way to do this without getting them to make changes? :)
  • Bogey
  • Disturbed
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 7106
  • Loc: Ozzuland
  • Status: Offline

Post November 18th, 2007, 5:09 pm

klorpet wrote:
Thanks JasonStanley and Bogey for your replies.

That's exactly the problem, it's a site I don't own or control. Any way to do this without getting them to make changes? :)


So, this is like an autofill for another form?

Which form are you thinking about?
Learn PHP | I got 10 PHP tutorials! Check them out!
Dreamtale - Farewell
Just a note... I've giving up on web development and that stuff... Just lost all interest in it.
  • klorpet
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 29, 2006
  • Posts: 9
  • Loc: Australia
  • Status: Offline

Post November 18th, 2007, 11:29 pm

The original main form is hosted here: http://www.urja.too-write.com/gift3_free.html

And an example of a form we wish to auto fill is: http://james.adbutler.de/click.php?pid= ... &bid=69734

The concept is that we provide free gifts (which are sponsored by certain companies). People fill out their details on our site and we load two sponsor sites and auto fill the corresponding data on their forms. The customer hits submit for both and this makes them elligable to receive their free gift.

The trouble is the sponsor sites/forms are outside of our control.

Let me know if you need any other details or information. :)

Thanks in advance for any help you guys can offer,
Ben.
  • JasonStanley
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Nov 15, 2007
  • Posts: 126
  • Loc: London, England
  • Status: Offline

Post November 19th, 2007, 12:12 am

klorpet wrote:
Any way to do this without getting them to make changes? :)


Ask them, if you are doing something that is mutually beneficial to both of you then I don't really see a problem.
  • Shadows
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Oct 03, 2006
  • Posts: 64
  • Status: Offline

Post November 19th, 2007, 2:22 am

it makes best sense to ask the other web developers snice they are your sponsor otherwise this could be seen as filling out various forms rather like bot activity which many webmasters rightfully so look down upon.

However you could use socket programming since php has an extensive range of functions where you could take the data from your form and use this data to build a packet which you can then send to the other websites form using a POST declaration in your packet.
  • klorpet
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 29, 2006
  • Posts: 9
  • Loc: Australia
  • Status: Offline

Post November 21st, 2007, 2:14 pm

I ran it past a couple of them (we have more than one sponsor) but the problem is that they dont want to make changes to their site or support extra pages.

We put this concept to most of them and are trying to get it up and running. Still hoping there might be a solution...?

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: dmc_gryphonit, mk27 and 443 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.