Simple example here. You have a page that submits to your php script. The form on the page is coded like this:
<form action="script.php" method="get"> <input type="text" name="variable1"> <input type="Submit"> </form> This, when used, submits to your script, which will have code something like this: <? $var = $HTTP_GET_VARS['variable1']; if(!$link = (code to connect to your database, typically mysql)) { die("Cannot connect to database"); } $sql = "INSERT INTO table values('$var')"; if(!$result = mysql_query($sql)) { die("Cannot insert data"); } etc. HTH Mike "Hector Huaranga Segales" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI > > my English is no too god ...but > > i need information about forms with PHP, data base query, i need examples > plz... > > thanks in advanced -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php