Page 1 of 1

Translate this php code into C#, VB and J#

Posted: Fri Feb 17, 2012 7:02 pm
by Bores
Hello

I need someone translate for me this php code into the following programming languages :
1 - C#
2 - Visual Basic
3 - J#

This is the code :

Code: Select all

$var1 = $_POST['userAge'];
$var2 = $_POST['userBirth'];
$url = 'h_t_t_p://externalwebsite.com/script.php?temp1=' . $var1 . '&temp2=' . $var2;
$content = file_get_contents($url); 
Thank You so mush

Re: Translate this php code into C#, VB and J#

Posted: Sat Feb 18, 2012 12:16 am
by twinedev
You may have better luck posting this to a forum for the above languages, and explain to them you want to be able to take two values sent via POST and add it to a URL then get the contents of that URL as a string and put it in a variable.

-Greg

Re: Translate this php code into C#, VB and J#

Posted: Sat Feb 18, 2012 2:00 am
by Bores
Hi Twinedev ;
I have tried in an other forum but no luck, it seem people their didn't understand PHP on the other side so they can't translate it. I which if someone can help.

Re: Translate this php code into C#, VB and J#

Posted: Sat Feb 18, 2012 3:37 am
by twinedev
That is why I listed in non language specific terms what to ask for on those forums. :-)

-Greg