Go with an SQL query simular to this.
PHP Code:
<?php $con = mysql_connect('db_server','db_name','db_password'); if(!$con){ die('Cannot Connect: ' . mysql_error()); } mysql_select_db('db_name'); $sql = "INSERT INTO some_table (somefield, someotherfield) VALUE('$_POST[user_input_text]','$_POST[more_input_text]')"; mysql_query($sql, $con); ?>
|