Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aperture

macrumors 68000
Original poster
Mar 19, 2006
1,876
0
PA
Is it possible to build a new front end for a form located somewhere else on the web, on my own website? For example, let's say there is a form to get Example.com's monthly newsletter on Example.com. Would I be able to write a PHP script to take the user's information on my site, and have the PHP script fill out the real form on Example.com? If so, could I then have the PHP script return the information shown on Example.com (like "You will now receive our monthly newsletter"). I know this is probably a long shot but any help is appreciated.

Thanks
 
Potentially. It really depends on how their script is written and what it checks.
  • If they check the referrer information and see it doesn't come from their own web site, then it could be rejected.
  • Also, if they use CAPTCHA, you would be out of luck.
  • For my contact form as part of my spam prevention, the form element names are randomly chosen on each load so you wouldn't be able to remotely submit things to my form.
  • And yet another thing would be if they use sessions or cookies it could cause problems.
There's other things that could interfere as well, so essentially you'll need to know the source code for the form you want to interact with.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.