Jump to content

Submit form - get result content - Clueless


andyfarang

Recommended Posts

Imagine there is site www.some-free-dictionary.com. There's textarea and submit button. When you submit that form, you are redirected back at the same address, but it changed - there is translated text (and textarea and submit button).

 

But that site is not mine and I want to my PHP script use this translator. First submit that form, after get content of new page. But I'm clueless with first two steps. How to submit that form with my data and how to get content of refreshed page (it's url doesn't change, you're redirected back)?

 

Thank you

 

 

//translator is example - suggesting using translator with free API is not a solution

Link to comment
https://forums.phpfreaks.com/topic/282689-submit-form-get-result-content-clueless/
Share on other sites

What site is this? If the site is offering their functionality for others to use then they most likely have developed an API for it. If there is no API, then my guess is that the site doesn't want you to use their functionality for 3rd party sites. So, helping you would likely violate that sites ToS.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.