Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post">
- <input class="textinput" type="text" name="id" size="35" />
- <input class="buttonsubmit" type="submit" name="submit" value="Get Twitter ID" /></form>
- <?php
- if(isset($_POST['id'])){
- $ch = curl_init();
- $post = "input=" . $_POST['id'];
- $url = "http://tweeterid.com/ajax.php";
- curl_setopt($ch,CURLOPT_URL,$url);
- curl_setopt($ch,CURLOPT_POST,count($fields));
- curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch,CURLOPT_CONNECTTIMEOUT ,3);
- curl_setopt($ch,CURLOPT_TIMEOUT, 20);
- $response = curl_exec($ch);
- print "Twitter ID : " . $response;
- curl_close ($ch);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement