Hello
I am using PlainAjax.
http://coolpenguin.net/plainajax/?p=examplespostdata
Here is my code and it is not working if i called from Javascript function.
Code:
<script type="JavaScript" src="plainajax.js"></script>
<script language="JavaScript" >
function openWin()
{
.......
.......
.......
var selval = selectedValue.toString(); // Dynamic value variable
document.formlist.myval.value = selval; // stored to hidden variable
var cn = document.getElementById( "itsme" ).childNodes; // Get all the nodes
var myresult = new Array(); // declare result array
plainajax.request('respurl: req_php.php; resultloc: myresult; paramloc: cn;');
Window.open("req_php.php");
}
</script>
<html>
<div id="itsme">
<input type="hidden" name="myval" id="myval" value="">
</div>
</html>
req_php.php
=========
Code:
<?php
echo "value from html = ".$_REQUEST['myval']."<br>";
?>
But i am not able to get any value in my php program. What i did wrong in this?
or is anyother way to pass the variable from Javascript (except pass thru url query string, this is not secure)
Thanks