View Single Post
Old 02-06-2005, 07:39 AM   #3 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Just set the html form to post to itself or another PHP page.

in the php page, grab the post vars and run the necessary mysql commands.

PHP Code:
$id $_POST['id'];
$html_data $_POST['foo'];

// mysql connect /etc..

$sql "INSERT INTO table_name (id, data) VALUES ('{$id}', '{$html_data}');";
mysql_query($sql); 
Also, no need for 3 crossposts..

-r
idx is offline   Reply With Quote