??? If you wanted to send XML data
to the PHP script, you would set
the Content-Type to text/xml.
complete the function p. 66
??? When using the GET method, use
the value null as the only argument
when calling send(). Any
data sent over GET is appended
to the URL itself. When using
POST, you need to provide the
data when you call send(), as it??™s
not sent in the URL.
prepare for XML p. 67
??? The PHP script sends its response
as XML data, not as a normal
Web page. Everything PHP will
print will be part of this XML.
??? The XML data being created is
really like the data in an HTML
page, where there??™s one root element
and any number of nested
subelements. For this example,
the root element will be called
response and there will be two
subelements. There can be zero
or more elements called error
and there will always be exactly
one element called result. In
comparison, an HTML page has
a root element called html, two
subelements named head and
body, and more subelements
within those.
adding records via Ajax 83
extra bits
complete the XML p. 73
??? To debug any PHP-MySQL problems,
you??™ll need to print out the
query to inspect its syntax.
Pages:
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84