PaulS:
I think you are going about this all wrong. Typically, the Arduino serves up a page, containing a form with submit items. The client renders the page, and the user does something that triggers a submit item which triggers the action script. That script usually performs another GET to the server (the Arduino) containing additional information, which the Arduino parses to determine what to do.There is nothing in the output that you showed that indicates that you made a useful GET request from the Arduino as client. All that is is an index listing from a directory, typically generated when you do not properly specify a script name, and there is an index.php script in the directory.
We'd need to see your Arduino code, and understand how you think a client is going to get useful information from the server.
Here is my php code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>User Room</title>
<style type="text/css">
.alt {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
color: #09C;
}
.azm {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
color: #09C;
text-align: center;
font-weight: bold;
}
.move {
color: #FFF;
}
.alt {
color: #FFF;
}
.azm {
color: #FFF;
}
.btn {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
.txt {
color: #FFF;
}
.txt .txt {
font-weight: bold;
color: #39F;
text-align: center;
}
</style>
</head>
<body bgcolor="#000000">
<form action="form1" method="get">
<p class="txt"><span class="txt">CLICK THE BUTTON TO CONTROL TEHE TELESCOPE!</span> </p>
<table width="400" border="2" align="center">
<tr>
<th colspan="2" class="alt" scope="row">Altitude Control</th>
<td colspan="2" class="azm">Azimuth Control</td>
</tr>
<tr>
<th scope="row"><input type="submit" name="Move" id="Move" value="Move" /></th>
<td><input type="submit" name="Stop" id="Stop" value="Stop" /></td>
<td><input type="submit" name="Move2" id="Move2" value="Move" /></td>
<td><input type="submit" name="Stop2" id="Stop2" value="Stop" /></td>
</tr>
</table>
</form>
</body>
</html>
When the user click move button, the servo will rotates. then when button stop was clicked, the servo will stop.
I use 4 buttons because I use 2 servos for the pan and tilt.
I don't know how to make the code for the Arduino using text finder as the previous post to connect arduino to PHP.