html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
session_start();
include("connection.php");
if(isset($_POST['submit']))
{
$description=$_POST['value'];
$chk="";
foreach ($description as $chk1)
{
$chk.=$chk1;
}
$sql="insert into problem(P_ID, description) values('','$chk')";
if($con->query($sql)===true){
echo "success";
echo "<meta http-equiv = 'refresh' content ='0; url = problemForm.php'/>";
}else {
echo "error";
echo "<meta http-equiv = 'refresh' content ='2; url = problem.php'/>";
}
}
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run