PHP Post not working with twitter api

tkb

New Member
Im trying to use the following PHP to add a favorite to my account:\[code\]<?php if(isset($_POST['submit'])) { $fav = $_REQUEST['fav']; $connection->post('favorites/create', array('id' => $fav)); echo "<div style='padding-bottom: 5px; color: #0099FF;'>Fav Created Successfully.</div>"; }?>\[/code\]With the following form:\[code\]<form id="fav" method='post' action='index.php'> <input type="text" style="width: 346px;" name="fav" id="fav" ></input> <input type="submit" value="http://stackoverflow.com/questions/3646669/Fav This!" name="submit" id="submit" /></form>\[/code\]Its not creating a favorite, Can anyone spot anything wrong with it?PS: I am using the OAuth API:\[code\] $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);\[/code\]
 
Back
Top