The simplest answer would be to call the PHP script on the server, and submit the parameters to it via a GET for instance (although NOT recommended, as being a reg form, there will most likely be private information).
If you want to do it properly, you should open an encrypted (HTTPS) connection from your Android application to the server, and submit the registration info securely. Now, I have no HTTPS example to give you at the moment, but I can show you a simple way of POSTing data to your script's url (unsecurely):
String result = null;
InputStream is = null;
String url = "http://localhost/your_php_script_url.php";
ArrayList<namevaluepair> params = new ArrayList<namevaluepair>();
params.add(new BasicNameValuePair("param1_name", "param1_value"));
params.add(new BasicNameValuePair("param2_name", "param2_value"));
params.add(new BasicNameValuePair("param2_name", "param2_value"));
try {
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url);
httppost.setEntity(new UrlEncodedFormEntity(params));
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
} catch (Exception e) {
Log.e("Error", "Error in http connection " + e.toString(), e);
}
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"), 8);
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line + "\n");
}
is.close();
Log.d("Server response", sb.toString());
} catch (Exception e) {
Log.e("Error", "Error converting result " + e.toString(), e);
}
</namevaluepair></namevaluepair>
This example uses the default Apache HTTP library found in Android. Just replace the mock parameters and variables with what you need in the script, and should be good to go
Also, this is not a webservice per se (although it could be argued that it's done RESTfully). If you need to call a proper webservice (eg SOAP), well, just Google it.
Here it is[^]