<commit_before><?php
include('../com/conn.php');
include('adm_nav.php');

if(isset($_GET['submit']))
{
    $password = $_GET['password'];
    $address = $_GET['address'];
    $email = $_GET['email'];
    $name = $_GET['name'];
    $sex = $_GET['sex'];
    $nid = $_GET['nid'];
    $tel = $_GET['tel'];

    $sql = "
        INSERT INTO students(
            name,
            nid,
            tel,
            address,
            email,
            sex,
            password)
        VALUES(
            '$name',
            '$nid',
            '$tel',
            '$address',
            '$email',
            '$sex',
            '$password')";

    mysqli_query($db, $sql);

    if(mysqli_errno($db)==0)
    {
        echo "<p>عملیات با موفقیت انجام شد.</p>";
    }
    else
    {
        echo "<p>عملیات نا موفق بود.</p>";
    }
}
?>

<div id="content">
    <form action="" method="GET">
        <input type="text" name="name" placeholder="نام">
        <select name="sex">
            <option>مرد</option>
            <option>زن</option>
        </select>
        <input type="text" name="nid" placeholder="کد ملی">
        <input type="text" name="tel" placeholder="تلفن">
        <input type="text" name="email" placeholder="ایمیل">
        <input type="text" name="address" placeholder="آدرس">
        <input type="password" name="password" placeholder="<PASSWORD>">
        <input type="submit" name="submit" value="ارسال">
    </form>
</div><commit_msg>Fix display of message<commit_after><?php
include('../com/conn.php');
include('adm_nav.php');

if(isset($_GET['submit']))
{
    $password = $_GET['password'];
    $address = $_GET['address'];
    $email = $_GET['email'];
    $name = $_GET['name'];
    $sex = $_GET['sex'];
    $nid = $_GET['nid'];
    $tel = $_GET['tel'];

    $sql = "
        INSERT INTO students(
            name,
            nid,
            tel,
            address,
            email,
            sex,
            password)
        VALUES(
            '$name',
            '$nid',
            '$tel',
            '$address',
            '$email',
            '$sex',
            '$password')";

    mysqli_query($db, $sql);

    if(mysqli_errno($db)==0)
    {
        echo "<p class='msg success'>عملیات با موفقیت انجام شد.</p>";
    }
    else
    {
        echo "<p class='msg error'>عملیات نا موفق بود.</p>";
    }
}
?>

<div id="content">
    <form action="" method="GET">
        <input type="text" name="name" placeholder="نام">
        <select name="sex">
            <option>مرد</option>
            <option>زن</option>
        </select>
        <input type="text" name="nid" placeholder="کد ملی">
        <input type="text" name="tel" placeholder="تلفن">
        <input type="text" name="email" placeholder="ایمیل">
        <input type="text" name="address" placeholder="آدرس">
        <input type="password" name="password" placeholder="<PASSWORD>">
        <input type="submit" name="submit" value="ارسال">
    </form>
</div>
{'fraction_non_alphanumeric': 0.1923982509249916, 'fraction_numerical': 0.0006727211570803902, 'mean_word_length': 1.997983870967742, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2984002', 'n_tokens_mistral': 1027, 'n_tokens_neox': 984, 'n_words': 192}