Is thier a way to do a post in php
I trying to do a simple post to facebook, I got same sample to do a postcode and change it a little.  I get the following error

Parse error: syntax error, unexpected ';' in /home/consult/public_html/projects/facebook/index.php on line 13

the line is
'access_token'=>;urlencode($code),

 the code:
<?php
//set POST variables
$url = 'https://graph.facebook.com/arjun/feed';
$code="testing";
$message="Test";
$fields = array(
	'access_token'=>;urlencode($code),
	'message'=>;urlencode($message),
				);

//url-ify the data for the POST
foreach($fields as $key=&gt;$value) { $fields_string .= $key.'='.$value.'&amp;'; }
rtrim($fields_string,'&amp;');

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);

//execute post
// $result = curl_exec($ch);

//close connection
curl_close($ch);


?>

Ted
Is thier a way to do a post in php
===

I trying to do a simple post to facebook, I got same sample to do a postcode and change it a little.  I get the following error

Parse error: syntax error, unexpected ';' in /home/consult/public_html/projects/facebook/index.php on line 13

the line is
'access_token'=>;urlencode($code),

 the code:
<?php
//set POST variables
$url = 'https://graph.facebook.com/arjun/feed';
$code="testing";
$message="Test";
$fields = array(
	'access_token'=>;urlencode($code),
	'message'=>;urlencode($message),
				);

//url-ify the data for the POST
foreach($fields as $key=&gt;$value) { $fields_string .= $key.'='.$value.'&amp;'; }
rtrim($fields_string,'&amp;');

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);

//execute post
// $result = curl_exec($ch);

//close connection
curl_close($ch);


?>

Ted