Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the data from the text boxes and spinners
- title = editTitle.getText().toString();
- desc = editDesc.getText().toString();
- date = editDate.getYear()+"-"+editDate.getMonth()+"-"+editDate.getDayOfMonth();
- location = String.valueOf(locations.getSelectedItem());
- category = String.valueOf(categories.getSelectedItem());
- contact_link = editContact.getText().toString();
- // Send the users entered parameters to the PHP script through POST
- List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
- nameValuePairs.add(new BasicNameValuePair("title", title));
- nameValuePairs.add(new BasicNameValuePair("description", desc));
- nameValuePairs.add(new BasicNameValuePair("date", date));
- nameValuePairs.add(new BasicNameValuePair("location", location));
- nameValuePairs.add(new BasicNameValuePair("category", category));
- nameValuePairs.add(new BasicNameValuePair("contact_link", contact_link));
- // Send inputted data to the the PHP script
- jsonStr = sh.makeServiceCall(submit_url, HandleConnections.POST, nameValuePairs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement