0

I've successfully uploaded the file to my php server.

However, sending extra information to the server does not work.

My code is as follows:

conn.setRequestProperty(Config.KEY_COURSE_TITLE, course_title);// trying to send course_title (a string variable) to php server

$course_title= $_POST['course_title']; // trying to access sent data

Full code: http://paste.ubuntu.com/15358822/

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57
Khalid Rahman
  • 125
  • 10
  • Try URL query parameters. Refer this - http://stackoverflow.com/questions/11480763/how-to-get-parameters-from-this-url-string – Soman Dubey Mar 12 '16 at 14:30
  • Thanx a lot bro. It works . Sometimes simple things cant come out from brain. Actually I have a project deadline on tuesday . Thats why I think I did not figured out what to do . Thanx again :) @SomanDubey – Khalid Rahman Mar 12 '16 at 14:46
  • added same as answer, glad that it worked for you. – Soman Dubey Mar 13 '16 at 09:22

1 Answers1

0

[Added from comment as answer]

Try URL query parameters. Refer this - How to get parameters from a URL string?

Community
  • 1
  • 1
Soman Dubey
  • 3,798
  • 4
  • 22
  • 32