SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member hoonz's Avatar
    Join Date
    Oct 2001
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Remote site form

    I'm clueless on this one and I hope someone can alleviate my plight before I break something
    I have a php script that is attempting to pass a value to the keyword search box of the site below:
    http://www.ero.govt.nz/reports/search.htm

    However, the values just don't work and I get transported to this site:
    http://www.ero.govt.nz/publish/reppu...OpenForm&Seq=1

    There is javascript code that would appear to interpret the input box search value and code it appropriately. I have tried lots of things but I just cannot seem to pass a simple name like Torbay into the search field so that I can get the necessary results.

    If I type Torbay into the search box and hit the enter key, I get what I want. Point is that I want to do it from my own site where I pass the name I'm searching for automatically and I automatically get the search info - I hope all of this is making sense Any asistance would be great. Thanks

  2. #2
    ********* obeah makeda's Avatar
    Join Date
    Jun 2001
    Location
    rollin' on dubs
    Posts
    492
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would not do this without getting permission from the site owner/webmaster first.

    Having said that, I would try loading the file into a frameset or an IFrame. In order to do what you want to do, you need control of the DOM for that website. I think you could access it if the file was loaded in one of those. After that:

    frameID.formID.textBoxID.value = <?=$yourPHPvariable ?>


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
  •