You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
502 B
33 lines
502 B
|
|
|
|
<form method="post">
|
|
|
|
Title
|
|
<input type="text" name="title">
|
|
<br><br>
|
|
|
|
Text
|
|
<textarea class="mce" name="text"></textarea>
|
|
<br><br>
|
|
|
|
section
|
|
<input type="text" name="section" value="<?= $_POST['section'];?>">
|
|
<br><br>
|
|
|
|
<input type="submit">
|
|
|
|
</form>
|
|
|
|
|
|
<?php
|
|
|
|
if(sizeof($_POST)){
|
|
|
|
$query = "INSERT INTO links VALUES(0, '".addslashes($_POST['title'])."', '".addslashes($_POST['text'])."', '".$_POST['section']."')";
|
|
$q = mysqli_query($conn, $query);
|
|
|
|
echo $query;
|
|
|
|
}
|
|
|
|
?>
|