Read data from the website using ESP8266

Dear All

Dear All I have a website which is running on wamp server and it is working

I have written a program for ESP8266 to read the data from the website and it is working and connect with my website run on the wamp sever

My website have four variables

Ex strText1, strText2 , strText3 , strText4

Each veritable have a value

So need to read the value assigned to the variable

I used following command to read the website

client.println("GET /index.php HTTP/1.1");

Using above GET method it is showing all of the website elements

please advice how can i use the correct GET URL to read the correct variable value

Please advice

Thanks in advance

Dear All I have a website which is running on wamp server and it is working

A "web site" is what browser renders after executing a script on the server. You do NOT have a website running on a server.

Using above GET method it is showing all of the website elements

Using that GET request, the script, index.php, is executed, and the server sends the output back to you.

Something happens with that data. Something the code that you did not post does.

please advice how can i use the correct GET URL to read the correct variable value

Without knowing anything about index.php, we can't.

PaulS:
A "web site" is what browser renders after executing a script on the server. You do NOT have a website running on a server.

I'll have to disagree on that one.

A website, also written as web site, is a collection of related web pages, including multimedia content, typically identified with a common domain name, and published on at least one web server.

source wikipedia

dataType : "json", //We will be requesting data in JSON format
timeout : 10000, //this will cancel the request if it has not received a reply within 10 seconds.
success: function(data){
strText1,strText2,strText3,strText4 = "";
stSpoon1,stSpoon2,stSpoon3,stSpoon4="";

nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();

strText1 = "&txt=" + document.getElementById("order_form").List1.value + "&end=end";
strText2 = "&txt=" + document.getElementById("order_form").List2.value + "&end=end";
strText3 = "&txt=" + document.getElementById("order_form").List3.value + "&end=end";
strText4 = "&txt=" + document.getElementById("order_form").List4.value + "&end=end";

if(List1.value=="1Spoons" || List2.value=="1Spoons" || List3.value=="1Spoons" || List4.value=="1Spoo

PA3040:
dataType : "json", //We will be requesting data in JSON format
timeout : 10000, //this will cancel the request if it has not received a reply within 10 seconds.
success: function(data){
strText1,strText2,strText3,strText4 = "";
stSpoon1,stSpoon2,stSpoon3,stSpoon4="";

nocache = "&nocache=" + Math.random() * 1000000;
var request = new XMLHttpRequest();

strText1 = "&txt=" + document.getElementById("order_form").List1.value + "&end=end";
strText2 = "&txt=" + document.getElementById("order_form").List2.value + "&end=end";
strText3 = "&txt=" + document.getElementById("order_form").List3.value + "&end=end";
strText4 = "&txt=" + document.getElementById("order_form").List4.value + "&end=end";

if(List1.value=="1Spoons" || List2.value=="1Spoons" || List3.value=="1Spoons" || List4.value=="1Spoo

I have no idea what this gibberish is supposed to mean. It is NOT a reply to "what does your index.php file look like".

Dear PaulS

I am sorry the post was missed some part

By mistake it is showing index.PHP and It should be Order.PHP

My Order.PHP codes have more than 900 words so this forum does not allow to post codes more than 900 words

Please advice to attached the cods

thanks in advance

Please advice to attached the cods

Use the Reply button, NOT the Quick Reply field. When you do that, there is an Additional Options link at the bottom of the text entry window. Click that link, and you can add attachments to your post.

It might be easier to write separate php scripts to extract the 4 interesting bits of data, and then make 4 GET requests. It depends on whether you are more familiar with Arduino programming or PHP development.