Ok if I wanted to create an update form for a page that has been published to the web already, how would i go about doing it so that when a user clicks on update form, enters values that the values entered can be part of the update action.

can i declare like $textbox1 = textbox1.text

then do like mysql_query("UPDATE `tablename` SET field2='$textbox1' LIMIT 1");