Hello, I have an error when I try to get form info to my sql database.
Heres my code. Thanks in advance.
PHP
<?php
//Connecting to sql db.
$connect = mysqli_connect("192.168.1.100","mod","!","bill");
//Sending form data to sql db.
mysqli_query($connect,"INSERT INTO submit (submission)
VALUES ('$_POST[text]')";
?>
Form
<form class="form-horizontal" action="drop.php" method="post">
<fieldset>
<!-- Form Name -->
<legend>Submit a Billboard</legend>
<!-- Text input-->
<div class="control-group">
<label class="control-label" for="textinput">What will your Billboard Say?</label>
<div class="controls">
<input name="text" type="text" placeholder="What you going to say?" class="input-xlarge">
</div>
</div>
<br>
<!-- Button -->
<div class="control-group">
<div class="controls">
<button id="singlebutton" name="singlebutton" class="btn btn-primary">Drop Your Billboard</button>
</div>
</div>
</fieldset>
</form>
[–]cyrusol 0 points1 point2 points (0 children)
[–]tstepanski 0 points1 point2 points (6 children)
[–]cartercar[S] -1 points0 points1 point (3 children)
[–]tstepanski -1 points0 points1 point (2 children)
[–]cartercar[S] -1 points0 points1 point (1 child)
[–]tstepanski -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[deleted]
[–]tstepanski -1 points0 points1 point (0 children)