Turn Led on/off with Ethernet WebServer

I’ve got these lines of code:

client.print("<FORM action=\"http://192.168.0.xxx/\" >");
client.print("<P> <INPUT type=\"radio\" name=\"status\" value=\"1\">ON");
client.print("<P> <INPUT type=\"radio\" name=\"status\" value=\"0\">OFF");
client.print("<P> <INPUT type=\"submit\" value=\"Submit\"> </FORM>");

I would want to do something in the lines of:

if(url contains "status=1")
{
   digitalWrite(ledPin, LOW);
}
if(url contains "status=0")
{
   digitalWrite(ledPin, LOW);
}

How would i go about doing this?

Thanks

-Zilian

I would want to do something in the lines of:

Permission granted.

How would i go about doing this?

With a text editor, if you don’t care for the IDE.

Seriously, we can not begin to tell you how to parse the URL unless we know that you HAVE something to parse and what that something is. Parsing a string is a lot different from parsing a String. The former you can get with here. For the latter, you’ll need to consult the String class documentation.

ZilianTheGreat:
How would i go about doing this?

Your Arduino is equipped with an “Ethernet Shield” containing a Wiznet W5100 chip and shall be acting as a webserver, or what?

In case yes: Write some no-nonsense code to read the HTTP GET request, then respond accordingly with a HTTP response!