English 中文(简体)
(a) 从一个需要持久性有机污染物数据的网站收集数据?
原标题:Fetching data from a site requiring POST data?

有一个非常简单的网站,仅载有几个内容,我想检索一个表格。 此前,I ve曾使用过文档_get_contents() http://www.example.com,为此目的,并摘取我通过探索和扼杀指挥所需要的信息,这些指挥是有效的。

然而,这个网站需要《专业和专业指导》的数据,才能显示表一所要求的数据。 我只知道提交数据的选定箱的名称和宽度,以及我需要提交的选择价值。

Another thing is that the second select box only appears once the first one has been dealt with, much like the table only appears once an option has been chosen for both.

How do I go about fetching the table?

提前感谢!

Abstract(and poor)presentation of thesiteservices table:

    <select id= select_box_1  name= first select box >
      <option value= option1_1 >Thing one</option>
      <option value= option1_2 >Second thing</option>
      <option value= option1_3 >Thing number three</option>
    </select>

    NOTE: Selecting an option will spawn:

    <select id= select_box_2  name= second select box >
      <option value= option2_1 >First thing</option>
      <option value= option2_2 >Second choice</option>
      <option value= option2_3 >The third option</option>
    </select>

    NOTE: Selecting an option will spawn the table I need.
最佳回答

Try with curl:

Here are some examples

问题回答

我的猜测是,你试图拆解的这个地点在《人口统计》之后的一届会议上储存了第一次选择的价值。 这意味着不能以单一要求这样做。

你们不得不使用购买力平价。 Httpants that support POST and Sessions/Cookies. Zend_Http_Client从ZentdFramework获得的支持,也是一种良好的候选人。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...