SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to create a form that will query another sites form?

    I need some advice on how to create a form on my site where a user will enter data, click submit, and the data they entered will be used on another site. Let me try to clarify. I'm trying to take data from a form, say, first name, last name, gender, etc, and taking that data and entering it into the registration area of the New York Times and submitting the info. Is this difficult to do and how would I go about doing it?

  2. #2
    SitePoint Addict betrollwin.com's Avatar
    Join Date
    Nov 2005
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just copy the form. If the form looks like the one below...

    <form method="POST" action="register.php">

    Change the register.php to http://nytimes.com/register.php

    Most big sites have protection against this though so I don't think it will work with nytimes.

  3. #3
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you clarify a bit more please?

    As for the big sites protecting against this, are you talking about the image that most sites display and ask you to verify or are you saying big sites won't allow you to pass data at all?

    Sorry I'm a bit new to all of this.

  4. #4
    SitePoint Addict betrollwin.com's Avatar
    Join Date
    Nov 2005
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Big sites wont allow you to pass data at all (vulnerable to sql injection)

  5. #5
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,807
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    it's called XSS injection and unless you have permission from the site you are going to try and query, you could at best fail and at worst get busted for it.

    Find out from the site if they allow remote calls or if they have some form of API you could use.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •