italiano40 macrumors 65816 Original poster Jan 3, 2009 #1 i use $_REQUEST, to get the POST method from my html form and it isn't working i can't figure it out everything works but this
i use $_REQUEST, to get the POST method from my html form and it isn't working i can't figure it out everything works but this
Aea macrumors 6502a Jan 3, 2009 #2 Post your code. First guess is typo, send second is you not using "name" for fields.
italiano40 macrumors 65816 Original poster Jan 3, 2009 #3 here Code: <form action="twitterlogin.php" method="POST"> <p>Twitter username: <input type="text" name="twitterusername"></p> <p>Twitter Password: <input type="password" name="twitterpassword"></p> <p><input type="submit" name="Submit" value="Submit"></p> </form> Code: $twitter=new Twitter($_REQUEST["twitterusername"],$_REQUEST["twitterpassword"]);
here Code: <form action="twitterlogin.php" method="POST"> <p>Twitter username: <input type="text" name="twitterusername"></p> <p>Twitter Password: <input type="password" name="twitterpassword"></p> <p><input type="submit" name="Submit" value="Submit"></p> </form> Code: $twitter=new Twitter($_REQUEST["twitterusername"],$_REQUEST["twitterpassword"]);
italiano40 macrumors 65816 Original poster Jan 3, 2009 #5 here Code: array(3) { ["twitterusername"]=> string(10) "mytwittername" ["twitterpassword"]=> string(6) "mytwitterpassword" ["Submit"]=> string(6) "Submit" }
here Code: array(3) { ["twitterusername"]=> string(10) "mytwittername" ["twitterpassword"]=> string(6) "mytwitterpassword" ["Submit"]=> string(6) "Submit" }
Aea macrumors 6502a Jan 3, 2009 #6 So it seems to me the form and $_REQUEST is working correctly and something is wrong with the Twitter object.
So it seems to me the form and $_REQUEST is working correctly and something is wrong with the Twitter object.
angelwatt Moderator emeritus Jan 3, 2009 #8 You may want to take a look at this Twitter API tutorial. It uses a function called postToTwitter, rather than just Twitter.
You may want to take a look at this Twitter API tutorial. It uses a function called postToTwitter, rather than just Twitter.