hi
i want to access the php function from the javascript
this is code
[code=php]
<html>
<body bgcolor="#FFFFF F">
<title>CodeAve. com(JavaScript: Confirm Alert Box)</title>
<script language="JavaS cript">
function confirm_entry()
{
input_box=confi rm("Click OK or Cancel to Continue");
if (input_box==tru e)
{
// i want call the php function here........... ............//
// Output when OK is clicked
alert ("You clicked OK");
}
else
{
// Output when Cancel is clicked
alert ("You clicked cancel");
}
}
</script>
Click <a href="JavaScrip t:confirm_entry ()">here</a>
<p>
<form onSubmit="confi rm_entry()">
<input type="submit" >
</form>
</body>
</html>
//php function here
[/code]
Advance Thank
i want to access the php function from the javascript
this is code
[code=php]
<html>
<body bgcolor="#FFFFF F">
<title>CodeAve. com(JavaScript: Confirm Alert Box)</title>
<script language="JavaS cript">
function confirm_entry()
{
input_box=confi rm("Click OK or Cancel to Continue");
if (input_box==tru e)
{
// i want call the php function here........... ............//
// Output when OK is clicked
alert ("You clicked OK");
}
else
{
// Output when Cancel is clicked
alert ("You clicked cancel");
}
}
</script>
Click <a href="JavaScrip t:confirm_entry ()">here</a>
<p>
<form onSubmit="confi rm_entry()">
<input type="submit" >
</form>
</body>
</html>
//php function here
[/code]
Advance Thank
Comment