Aparajita,

Thanks for the input, I hacked the javascript source and have made it work with A4D, if anyone would like a copy just holla!

James.


On 4 Jan 2008, at 12:57, Aparajita Fishman wrote:

My specific problem is the line:

        $data = file_get_contents('php://input');

How to convert that to A4D?

According to the PHP manual, file_get_contents reads the contents of a file into a string, and the specifier 'php://input' allows you to read raw POST data.

So if I understand what is happening, it looks like the code is taking the raw posted form and passing it to https://www.google.com/tbproxy/spell .

You cannot get the the raw POST data in Active4D in the same way. You will have to rebuild the POST data to send to google.

Regards,

  Aparajita
  www.aparajitaworld.com

  "If you dare to fail, you are bound to succeed."
  - Sri Chinmoy   |   www.srichinmoy.org


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to