faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 11 people (82%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

I want to update DB, send ak, and return the filled form for changing data, all at the same time. How?

Mar 23rd, 2001 14:50
Ben Udall, Wyatt James,


Here's a quick example:
<?
// File: dbform.php
if (isset($submit_btn))
{
   // Enter form data into database
   echo "DB updated";
}
$data = htmlentities($data);
?>
<form action="dbform.php" method="post" name="form">
<input type="text" name="data" value="<? echo $data; ?>" />
<input type="submit" name="submit_btn" value="Enter" />
</form>