View Single Post
Old 05-21-2009, 07:04 PM  
lavitra
So Fucking Banned
 
Join Date: May 2009
Posts: 228
PHP Code:
<form action="submit.php" method="POST">
  <div>
    <input type="text" name="firstname" size="31" />
    <input type="text" name="lastname" size="31" />
    <input type="text" name="email" size="31" />
    <input type="text" name="shit" size="31" />
    <input type="submit" value="Search" />
  </div> </form> 

then in your submit.php

<?php

if (isset($firstname) && isset($shit) && .... )){

$firstname mysql_escape_string(trim($_POST['firstname']));
$shit =  mysql_escape_string(trim($_POST['shit']));
..
..

$con mysql_connect("localhost","id","pass");
if (!
$con)  {  die('Could not connect: ' mysql_error());  }
mysql_select_db("databasename"$con);

//INSERT ROW
$insertrow "INSERT INTO 'databasename' (`ID` ,`text')
                                      VALUES ('',  '
$title');";
mysql_query($insertrow) or die(mysql_error());
}

?>






anyways this is really half assed. theres other ways of doing it.

good luck.
lavitra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote