hi im new to php and im wonder if there any way to use javascript inside php code then i want to know how to call that function in javascript inside php code , really im sorry for my bad english and i hope that make my problem clear
<?php
ob_start();
require 'connect.inc.php';
session_start();
$usrequest = $_REQUEST['usr'];
$pwdrequest = $_REQUEST['pwd'];
$id = 'msg';
echo '<script type="text/javascript" language = "javascript">
function send ()
{
document.getElementById('msg').innerHTML = "asdsd";
}
</script>';
?>