Front end for another form

Discussion in 'Web Design and Development' started by Aperture, Mar 18, 2009.

  1. Aperture macrumors 68000

    Aperture

    Joined:
    Mar 19, 2006
    Location:
    PA
    #1
    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
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    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.
     

Share This Page