douqie6454 2015-03-10 01:54
浏览 12

页面源和检查元素没有相同的数据

From time to time I like to use php to grab some data using cURL.

Typically, I will use a particular link, and get the source of the page, then isolate the text I am looking for, and save it to my MySql database.

In this case, there is a value I am trying to get at. In the source, I see:

 <input type="hidden" name="hdnOrignalEstdValue" id="hdnOrignalEstdValue" />

which does not have the value.

But in the 'Inspect Element' console I see this:

<input tabindex="0" value="1768000" name="hdnOrignalEstdValue" id="hdnOrignalEstdValue" type="hidden">

This inspect element console sees the "hdnOrignalEstdValue" field, and shows the value (which you can see looking at the web page after you navigate to the link)

I have scoured the source code, and checked every link, and looked at the code for every related link, but the "1768000" can't be found anywhere. Since I see it showing up under 'Inspect Element', I know it is being delivered to my computer somehow, but I don't know how to code php, and/or use a different version of cURL, or some other method to 'find' that number.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 r包runway详细安装教程
    • ¥15 Html中读取Json文件中数据并制作表格
    • ¥15 谁有RH342练习环境
    • ¥15 STM32F407 DMA中断问题
    • ¥15 uniapp连接阿里云无法发布消息和订阅
    • ¥25 麦当劳点餐系统代码纠错
    • ¥15 轮班监督委员会问题。
    • ¥20 关于变压器的具体案例分析
    • ¥15 生成的QRCode圖片加上下載按鈕
    • ¥15 板材切割优化算法,数学建模,python,lingo