I am using curl to display a page response on the thank you page. The code looks like this:
$ curl_handle = curl_init (); Curl_setopt ($ curl_handle, CURLOPT_URL, 'http: //www.site.com'); Curl_exec ($ curl_handle); Curl_close ($ curl_handle); The page above 'www.site.com' has an hidden input value that looks like this:
& lt; Input type = "hidden" id = "my_id" value = "123" /> I have to take the value ('123') from this hidden input
thanks
= "post-text" itemprop = "text">
you parse HTML You can use to get and get value from the input element. I have not tested this code, but the quick code should look something like this:
$ doc = new DOMDocument (); $ Doctor & gt; LoadHTMLFile ('http://www.site.com'); $ Id = $ doc- & gt; GetElementById ('my_id') - & gt; GetAttribute ('value'); For example, cnn.com has the following HTML code on the front page. & lt; "US News Headlines Stories and Video"> US & lt; / A & gt; with "id =" nav-us "href =" / US / "title =" CNN.com " P> The following codes resonate with "US news headlines stories and videos from CNN.com" $ doc = new DOMDocument (); $ Doctor & gt; loadHTMLFile ('http: // www. Cnn.com '); $ title = $ doc-> GetElementById (' Navy-U ') - & gt; getAttribute (' title '); $$ titles;
Popular posts from this blog
I have developed an extension which works up to 1.6 on Magren (I'm trying Enterprise Edition, And I think the community is the same problem, because it is the same code). In my install script, I see the $ installer-> gt; CreateEntityTables ($ this- & gt; getTable ('alphanum / info')); The installation is done until it is not in the _text unit table. It crashed there! It turns out that when I log in to SQL and run it via PHPmyadmin, then this error is: Blob / Text column 'value' is used without the key 'key' . I saw the code there, and this is what is trying to create an index on the value column: -> addIndex ($ this- & gt; getIdxName ($ eavTableName, array ( 'attribute_id array (' attribute_id ',' value ')) - & gt; addIndex ($ this- & gt; getIdxName ($ eavTableName, array (' entity_type_id ' , 'Value')), array ('entity_type_id', 'value')) If there is no if statement is n...
I have a page with some links that I would like to be able to toggle with two buttons. It works with a link using getElementById, but I need to toggle some of those groups. I started with it, but it failed to work. I've heard that GetElementByClass has worked with everything but IE, but I'm using Opera 11.5 and it still does not work. I've searched a bit, but I'm new to some JavaScript and most of the explanation is not understood. Does anyone help me with a simple option, or can I help me fix the problem I've made? This is a test page I was using. & lt; Head & gt; & Lt; Script type = "text / javascript" & gt; Function hideNames () {document.getElementByClass ("WebName"). Style.display = "none"; } Function ShowName () {document.getElementByClass ("WebName"). Style.display = "inline"; } & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P class = "web...
question:? How can I store a 128-bit integer with nHibernate (IPv6) especially Firebird, where BigInteger is at MAX ^ 2 ^ 64 I want to calculate as: select * T_Country_IP_Range where (block_from & lt;; = @in_IP) and (block_to & gt ;. = @in_ip) then this storage as text / varchar / four is not an option It really does not seem to have any Firebird support for INT128. What you can do is represent 128bits as two 64-bit fields, upper 64 bits in one area ( IP_upper ) and others in less 64bits ( IP_Lower ). All comparison operations must be compared to the farm. If the upper area is small / large or if it is equal and then check the lower area: SELECT * to T_Country_IP_Range WHERE (block_from_upper & lt; @_____ above) (block_from_upper = @in_IP_upper and block_from_lower & Lt; = @in_IP_lower) and (block_to_upper> gt; @in_IP_upper or (block_to_upper = @in_IP_upper and block_to_lower & gt; = @in_IP_lower)) Kinda Strange, no doubt
Comments
Post a Comment