How can I retrieve values from the iframe form id, and call it to my client side html.
(client side html) sample.html
<head>
<script>
function alertThis(){
alert(parent.myframe.formsubmit.a_token.value);
}
</script>
</head>
<body>
<iframe name = "myframe" src="http://domain.com/sample/index.php">
<button onClick = "alertThis();">Click Here</button>
</body>
(server side php) index.php
<form name = "formsubmit">
<input id = "a_token" value="<?php echo $_SESSION['user'] ?>"/>
</form>
but it does not return any.