How to post variables to remote url

I want to post variables to remote php script
for instance

Who is Participating?
aboo_sConnect With a Mentor Commented:
Allright man keep it cool, I'm sorry to have bothered you, have a nice life!
read this tutorial it has the answer for you
MaranellasAuthor Commented:
Did you even read my question or not???? I need it for java not for php.I need to post java variables to remote url!!!
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Sorry man, but this was your question:

How to post variables to remote url?
Question:  I want to post variables to remote php script?

Now where exactly does it say "java variables"  ? forgive me for I can't read well ,ah..!
Now you want to post java variables use:

window.document.location.href = ''+javariable;

I hope now I got u right!
MaranellasAuthor Commented:
oh my good are mental?It says category JAVA.And i'm not asking for javascript.I'm asking for java code

something like this

String variable1="somevar";

URL url = new URL("" + variable1);

But it didn't worked so far so i need right answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.