I am doing the back end programming of a web site which will check airline prices from an external web site using 'screen scraping'.
The web site we are accessing is www.mytravellight.com
(we have their permission to access the site, as the company we are writing the system for will be booking the flights through them anyway).
I have written the system to enter number of passengers and departure / destination airports fine, and the system works and responds well, but when I get to the bit where we actually select the flight from a list in order to confirm airport taxes etc, it will not allow me to do it.
If you have a look at the web site (www.mytravellight.com
) - and enquire about a flight from Birmingham to Alicante (for example), when you click 'Search' you get to Step 2 (select your outgoing and incoming flights) - this works fine. It is the step 3 that I cannot get to work - moving from step 2 to step 3.
Now then, If at Step 2, I save the web page to my desktop, and then re-launch it from there, I can click on the outbound and inbound flight of choice and click SUBMIT, and it goes to Step 3 no problem... However, if I try to do this from my PHP rountine, it comes up with an error even though I am duplicating each variable in the post like for like. I have even written a routine which extracts all post variables and displays them - and then pointed the 'ACTION' of the saved form to this, then duplicated these fields, and re-tried, but it does not work.
Here is a link to the .html file which links in to the web site which works....
Can anyone duplicate this from a PHP rountine, but capture the output in a string ??? - If so, on top of the 500 points, I will gladly pay you in beers or whatever else you want - I am desparate to get this working now...