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...
Oh, for the moment I am not sure how it is officially supported, but for the success of the people Using Monodroid Vic Cool Storage I am able to leave and compile assemblies in my project, but while trying to use some classes, the errors of time have to be gathered. Especially when trying to connect like the example for Mono Touch string dbName = path. Cobain (environment. Gatefolder path (environment specialfolder personal), "mydb.db3"); // The following line will be called coolestation, where is the database, // to make it if it does not exist, and call a delegate that creates the necessary tables (only when the database file was newly created //) CSConfig.SetDB (DbName, true, () => {CSDatabase.ExecuteNonQuery ("Subscriber Integer Primary Key Attribute, Name Text (50) No, Number, Date First Text (30)");); There is no difference when I try to use the methods of CSConfig and when I cscfif If I try to pass 3 aggregates to STDB (3) then I get the invalid ...
I'm learning how to use DLL in C #. I have a very simple DLL to do my basic test. // using the MainForm.cs system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; Using System.Windows.Forms; Using System.Runtime.InteropServices; Namespace DLL_Test {public partial class} Form 1: Form {{DllImport ("TestDLL.dll", EntryPoint = "? @ @ YGHHH Add @, Accurate Spelling = True, Calling Communication = Calling Conference. STCL}] Add public static extern int ( Int a, int b); public form 1 () {initialization ();} private zeros button 1_Click (object sender, eventArgs e) {int num; try {num = add (2, 3); RichTextBox1.AppendText (num. ToString () + "\ n");} Hold (DllNotFoundException Pre) {Message Box.Show (ex.ToString ());} Hold (EntryPointNotFoundException Pre) {Message Box.Show (ex.ToString ())}} }} more DLL code: // TestDLL.cpp __declspec (dllexport) Add int __std...
Comments
Post a Comment