Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:48:56+00:00 2026-06-12T02:48:56+00:00

I need to remotely submit/process a form on an external website and get the

  • 0

I need to remotely submit/process a form on an external website and get the results back on my site. The user can NOT be aware of this interaction.

I am able to get the data using HTML PHP/ Simple_Html_Dom

<?php
require "DOM/simple_html_dom.php";

$html = file_get_html('website.com/pricing');
foreach ($html->find('div[id=Price]') as $result)
{
    echo $result->innertext;
}

?>

It is returning, PRICE as N/A. I need to be able to pass the values of the fields. I was hoping to pass them as hidden values such as <input type="hidden" name="QTY" value="100" />

What is the proper syntax and/or how do I accomplish this task?

I tried:

$html->load('<html><body
<form action="website.com/..." method="post" name="Pricing" > 
#all hidden fields & values
</form></body></html>')

Any ideas? Thanks for the help. Ideally I am trying to recreate the form on my page and fetch the results of the query in real-time using AJAX.

–MORE DATA–
This page is using sessions: (How does this affect POST?)

{
"headers": {
"Date": "Mon, 24 Sep 2012 19:23:58 GMT",
"Server": "Apache",
"Set-Cookie": "JSESSIONID=01987F6C188624B08885FE26644300DA.worker2; Path=/g",
"Cache-Control": "no-cache",
"Pragma": "no-cache",
"P3P": "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"",
"Vary": "Accept-Encoding",
"Connection": "close",
"Transfer-Encoding": "chunked",
"Content-Type": "text/html;charset=UTF-8"
},
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:48:57+00:00Added an answer on June 12, 2026 at 2:48 am

    You cannot access or amend data coming via AJAX that are from another domain. There is a same domain policy in force for such requests, so various types of hacks are prevented (like sniffing someone’s browser for their bank account details).

    If you cannot control pages in question, you are (as your research suggested) left with an option of a PHP Proxy. This, however has the downside of not being able to process JavaScript itself, making all dynamic fields in the remote form invisible to your PHP script.

    With regards to cookies, cURL should process cookies automatically for you. Check out the curl_setopt() manual for information about cURL settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to add a search feature to a website. Not being adept at
I have a form in my application which I need to submit via Ajax
How can I remotely make a post to a user's blog after he/she gives
please help me as i need to kill/ restart a process remotely. I have
I need to add text to a ScrollableLayout after it's remotely retrieved from an
I need to remotely profile a JVM for CPU Usage, IO stats and File
I need to activate theme for wordpress blogs which are present remotely. I thought
For my project purpose, i need to login to my facebook account remotely and
I have a fully customized msgina.dll in module i need to remotely debug it?
Users will be remotely accessing ***nix based machines via SSH and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.