Thursday, June 19, 2008

eval()? maybe?

Read this and reply

http://pinastro.wordpress.com/2008/06/11/enterprise-20-series-saga-begins/

I need some help with this simple ajax script. I am trying to just write something that will give an alert that says whatever is typed in the form field. My code is:
<html>
<body onLoad="clear()">
<script language="javascript" src="/javascript/xmlhttpobj.js"></script>
<script language = "javascript">
var xmlHttp;

function ajax(){
xmlHttp = getXmlHttpObject();
var url = "ajaz2.php";
url = url + "?input=" + document.forms["hello"].input.value;
xmlHttp.open("GET"- url- true);
xmlHttp.send(null);
xmlHttp.onreadystatechange = StateChange();
}
function StateChange(){

if(xmlHttp.readyState == 4){

alert(xmlHttp.responseText);
}
}
</script>
<form name="hello">
Enter text here:
<input type="text" name ="input"> <br>
<input type="button" name = "submit" onclick ="ajax();" value="Go Ajax!" height = "200px">
</form>
</body>
</html>

and the ajaz2.php file is:
<?php
$input = $_Get["input"];
echo $input;
return;

Any help would be wonderful. Thanks

Spain national team

Croatia national team
Arsenal FC
Man city
Netherland national team
Ajax amsterdam
PSV
Bordeaux
Rennais
Valencia
Sevilla
if u know all of those whre did u find it? Please i really need to know not just teams listed but almost every european teams.

ie celtic fans supporting Poland because of Artur Boruc and the other guy whose name I can t remember- Germany because of the St Pauli links they go on about all the time and Portugal because of their links to manure..
Rangers supporting Holland because of Van Bronckhorst and the Ajax links- and Spain because of Nacho Novo and Carlos Cuellar (they don t actually have to be in the squad) and Italy for Gattuso
Hearts and Czech Republic (Rudi Skacel)
etc

i tried to display chinese characters in my website.i used chinese charset gb2312 .the chinese characters displayed properly.But when i used ajax functionality-i dont get the exact chinese characters from the database.i get only question marks.any suggestions?

No comments: