<!DOCTYPE HTML> <html> <head> <title></title> <meta charset="utf8"></meta> </head> <body> <form method="post"action="prc_test.php"> <input type="text"name="name"value=""/><br/><br/> <input type="text"name="fname"value=""/><br/><br/> <input type="submit"name="sbm"value="ثبت"/> </form> </body> </html> <?php if(isset($_POST['sbm'])) { done($_POST['name'],$_POST['fname']); } function done($name, $fname) { if($con = mysqli_connect("localhost","root",'1050585712')) { mysqli_select_db($con,"pr_test"); $p = $con -> prepare("CALL Insert_Comment(?,?)"); $p -> bind_param('ss', $name, $fname); $p -> execute(); } else { echo 'db connection error'; } } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)