Created
January 18, 2010 23:37
-
-
Save ollym/280496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_POST['account']) AND ! empty($_POST['account'])) | |
{ | |
header('Content-Type: application/xml; charset=ISO-8859-1'); | |
print_r load('http://twitter.com/users/show/'.$_POST['account'].'xml'); | |
} | |
else | |
{ | |
print 'Invalid input data.'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Twitter: CactusInternet</title> | |
<link href="style.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js"></script> | |
<script src="controller.js"></script> | |
</head> | |
<body> | |
<form action="getProfile.php" method="post"> | |
<input type="text" name="account" id="account"/> | |
<input type="submit" name="button" id="button" value="Go" /> | |
</form> | |
<br /> | |
<div id="container"> | |
<h1>User Information</h1> | |
<p> | |
<div id="account"></div> | |
<br /> | |
<div id="numbers"></div> | |
</p> | |
<h1>Current Status</h1> | |
<p> | |
<div id="status"> | |
<div class="avatar"></div> | |
<div class="text"></div> | |
</div> | |
</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment