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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bores
Forum Newbie
Posts: 3
Joined: Fri Feb 17, 2012 6:56 pm

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

Post 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
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

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

Post 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
Bores
Forum Newbie
Posts: 3
Joined: Fri Feb 17, 2012 6:56 pm

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

Post 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.
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

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

Post by twinedev »

That is why I listed in non language specific terms what to ask for on those forums. :-)

-Greg
Post Reply