Forum Moderators: open
i want to use ajax in an application where one a button is clicked it calls a javscript function that function send a variables in URL to a php page and in php page i read data from mysql and store it in differnt variables now i want to get back these variables from php page, how can i do it?
thanks
#!/usr/bin/perl
$myvalue = 'From the script';
$content = qq¦
<html><head>
<script type="text/javascript">
alert('$myvalue');
</script>
</head><body>test</body></html>
¦;
print "content-type: text/html\n\n";
print $content;