zardos
04-12-2007, 09:21 AM
Hi, i need to knew how to do this, casus if i learn how, I have gotten my self samples for almost everything i need know to start creating my own mods. So please help me.
I want to have en example on how to write something in a form, then it submit and the info inserts into the database. some ting like this but in vBulletin code.
<textarea name="info" cols="100" rows="10" id="info"></textarea>
<input type="submit" name="Submit" value="Submit">
if (isset($_POST['Submit'])) {
$info = $_POST['info'];
$save = "INSERT INTO db(info) VALUES ('$info')";
mysql_query($save) or die("error");
exit;
}
Please help me..
I want to have en example on how to write something in a form, then it submit and the info inserts into the database. some ting like this but in vBulletin code.
<textarea name="info" cols="100" rows="10" id="info"></textarea>
<input type="submit" name="Submit" value="Submit">
if (isset($_POST['Submit'])) {
$info = $_POST['info'];
$save = "INSERT INTO db(info) VALUES ('$info')";
mysql_query($save) or die("error");
exit;
}
Please help me..