|
i have an XMLHttpRequest.The request passes a parameter to my php server code in /var/www. But i cannot seem to be able to extract the parameter back at the server side. below i have pasted both the codes:
javascript:
function getUsers(u)
{
alert(u);//here u is 'http://start.ubuntu.com/9.10'
xmlhttp=new XMLHttpRequest();
var url="http://localhost/servercode.php"+"?q="+u;
xmlhttp.onreadystatechange= useHttpResponse;
xmlhttp.open("GET",url,true);
xmlhttp.send(null);
}
function useHttpResponse()
{
if (xmlhttp.readyState==4 )
{
var response = eval('('+xmlhttp.responseText+')');
for(i=0;i<response.Users.length;i++)
alert(response.Users.UserId);
}
}
servercode.php:
<?php
$q=$_GET["q"];
//$q="http://start.ubuntu.com/9.10";
$con=mysql_connect("localhost","root","blaze");
if(!$con)
{die('could not connect to database'.mysql.error());
}
mysql_select_db("BLAZE",$con) or die("No such Db");
$result=mysql_query("SELECT * FROM USERURL WHERE URL='$q'");
if($result == null)
echo 'nobody online';
else
{
header('Content-type: text/html');
echo "{\"Users\":[";
while($row=mysql_fetch_array($result))
{
echo '{"UserId":"'.$row[UsrID].'"},';
}
echo "]}";
}
mysql_close($con);
?>
this is not giving the required result...although the commented statement , where the variable is assigned explicitly the value of the argument works...it alerts me the required output...but somehow the GET method's parameter is not reaching my php or thats how i think it is....pls help....
|
|
|
|
|
|
|
Fashionable boots are must have for fall and winter,UGG Boots Sale at our online store ,we offer free and fast shipping worldwide.The stylish boots such as:stylish Uggs Womens Boots/coolUggs Mens Boots//latestUgg Jimmy Choo/manyNew Ugg Boots/the hot sale Ugg Bailey ButtonUgg Classic Short/Ugg Classic Tall/Women's Mini Uggs/Ugg Bailey Button Triplet/UGG Bailey Button Krinkle/the modern and fashionable Ugg Leopard Prin/Ugg Romantic Flower/Ugg Classic Cardy/Ugg Classic Argyle Knit/Ugg Nightfall/Ugg Sundance II/Ugg Ultra Short/Ugg Grab Bags/Ugg Messenger Bags/Ugg Coquette/Ugg Dakota/Ugg Jimmy Choo Starlit/Ugg Jimmy Choo Sora/Ugg Jimmy Choo Kaia/Ugg Jimmy Choo Mandah Black/Ugg Sheepskin Cuff/Ugg Kids Bailey Button/Ugg Kids Classic Short/Ugg Men's Classic Short/All our boots are with genuine sheepskin and with excellent quality.Stylish Ugg Boots UK,hot saleUgg Bailey Button Boots,the latest Ugg Bailey Button Krinkle Boot,and the Ugg Classic Short Boot,Classic Tall Uggs,Ugg Classic Mini Boots,the new style 2010Bailey Button Triplet Uggs,the fashionable and modern style Uggs Leopard Print,Ugg Romantic Flower Boots,Ugg Classic Cardy Tall ,sweater-likeArgyle Knit Ugg Boots,Nightfall Ugg Boots,Sundance II Uggs,the durable and comfortableUltra Short Uggs,UGG Women's Ultra Tall,Ugg Grab Bag,and this nice bag to match with ugg boots,Ugg Messenger Bag,the comfort and fashion slippers as:Ugg Coquette Slipper,Ugg Dakota Slipper.The new coming bootsUgg Jimmy Choo Boots Starlit,Ugg Jimmy Choo Boots Sora,the boots the most women's favorite Ugg Jimmy Choo Boots Kaia,Ugg Jimmy Choo Womens Mandah Black,Ugg Boots Sheepskin Cuff,Uggs Kids Bailey Button,suitable for your kids,Uggs Kids Classic Short,and this style is for men:Uggs Men Classic Short Boots.All the boots are crafted with genuine sheepskin.
|
|
|
The immediate public reaction to Microsoft's ,(http://www.win7-productkey.com/),policy of industrial patents and the burden of others, to work at Microsoft to cut the abdomen nine "critical" patch, their previous contributions, Windows 7 Product Key,Microsoft is ready to receive a response, N'T, 13 patents interests ,Windows XP Product Key,of the collaboration between the tax and security patches do not attach importance to the industry the fundamental problem in hand, Windows Vista Product Key,no threshold, and security patches, Microsoft,Office 2010 Product Key, security of the four "hard" to reduce the threat level is considered standard practice of the two needs. . The other two lawsuits in recent months,Microsoft Product Key, to the state and the patent for the two giants in the technology,Office 2007 Product Key, Windows 7 Key,security patches struggle with active portfolio in order to improve their own ideas on the Internet the number of patents that " middle "level, technical performance, said. The exclusive right to use a particular method
|
|
|
The immediate public reaction to Microsoft's ,(http://www.win7-productkey.com/),policy of industrial patents and the burden of others, to work at Microsoft to cut the abdomen nine "critical" patch, their previous contributions, Windows 7 Product Key,Microsoft is ready to receive a response, N'T, 13 patents interests ,Windows XP Product Key,of the collaboration between the tax and security patches do not attach importance to the industry the fundamental problem in hand, Windows Vista Product Key,no threshold, and security patches, Microsoft,Office 2010 Product Key, security of the four "hard" to reduce the threat level is considered standard practice of the two needs. . The other two lawsuits in recent months,Microsoft Product Key, to the state and the patent for the two giants in the technology,Office 2007 Product Key, Windows 7 Key,security patches struggle with active portfolio in order to improve their own ideas on the Internet the number of patents that " middle "level, technical performance, said. The exclusive right to use a particular method
|
|
|
NEW YORK/CHARLOTTE, Burberry Outlet North Carolina (Reuters) - Warren Buffett will invest $5 billion in http://www.burberry.tk/
Bank of America Corp, stepping in to shore up Burberry Sunglasses the largest U.S. bank in the same Burberry Outlet Store way he helped prop up Goldman Sachs and General Electric during the financial crisis. Bank of America shares rose nearly 26 percent at one point, but gave up Burberry Store most of those gains by early afternoon, closing 9.4 Burberry Trench
percent higher at $7.65.Burberry Handbags Discount Trading was so heavy that, at one point midday Bank of America shares made up nearly 13 percent of the composite volume for the entire stock market. Buffett and Bank of America said he Discount Burberry Handbags made an unsolicited call to the bank on Burberry Handbags Cheap Wednesday morning offering to make an investment. Cheap Burberry Handbags Buffett told CNBC the idea came Burberry Handbags Sale to him while taking a bath and the Sale Burberry Handbags deal was done in 24 hours. Burberry Jackets Burberry Watches Burberry Shoes Burberry Glasses Burberry Wallets Burberry Coat
The deal entails Buffett's insurance company, Burberry Bags Discount Berkshire Hathaway Inc buying $5 billion of preferred Discount Burberry Bags shares and receiving warrants to buy 700 million shares.Burberry Bags Cheap
The warrants helped lift Berkshire Hathaway's paper profits on the deal to more than $3 billion, although the transaction has not yet closed. The deal is expected to close Cheap Burberry Bags on September 1 and includes provisions barring Buffett from raising his total BofA stake past 14.9 percent. Burberry Bags Sale
Fully exercised, at the most recent share count the warrants represent a 6.5 Sale Burberry Bags percent stake. Even though the bank has said it did not need to raise capital, investors widely believed it needed more money and to show it could raise funds easily.Burberry Bags
Employees were also relieved by the news. On at least one BofA trading floor, traders cheered when the news crossed the wires. Discount Burberry Bank of America has Cheap Burberry been plagued by fears that bad mortgage loans and legal liabilities from loans packaged into bonds by its Countrywide unit could drag it into tens of billions of dollars in fresh losses that would stretch its capital.Burberry Online The deal proved again that Berkshire Hathaway has become something Burberry Handbags of a lender of last resort to the financial system, as when it invested in Burberry On Sale Goldman Sachs Group Inc and General Electric Co. Buffett's role in aiding the economy and the financial system has become symbolically important,Burberry Sale given the lack of policy options left for the U.S. government and the Federal Reserve to stimulate demand.
|
|
|
|
|
|
|
|
|
|
|
|