Skip to content

Instantly share code, notes, and snippets.

@ollym
Created January 18, 2010 23:37
Show Gist options
  • Save ollym/280496 to your computer and use it in GitHub Desktop.
Save ollym/280496 to your computer and use it in GitHub Desktop.
<?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.';
}
?>
<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