Not sure what I am missing sure its probably something very simple, I need something to get my entered text out of the textbox and entered into a database currently the code looks like this.
[PHP]
for ($i=0; $i < mysql_num_fields($result); $i++) {
$st = sprintf("field: %s\n",mysql_field_name($result, $i));
//fputs($stderr, "$st\n");
if (mysql_field_name($result, $i) != "email") {
if (mysql_field_name($result, $i) == "first_names") {
$retval .= sprintf("<td bgcolor=%s><a href='mailto:%s' style='text-decoration: none;'><font class='status'>%s</font></a></td>",$color,$email,$row[$i] ? $row[$i] : ' ');
} elseif (mysql_field_name($result, $i) == "status") {
$retval .= sprintf("<td bgcolor=%s><input type=text id=textbox1 OnChange=\"UpdateStatus('%s','%s','textbox1.value' );\" value=\"%s\"></input></td>",$color,$row[0],$row[1],$row[$i] ? $row[$i] : ' ');
} elseif (mysql_field_name($result, $i) == "timestamp") {
$retval .= sprintf("<td bgcolor=%s>%s</input></td>",$color,$row[$i] ? $row[$i] : ' ');
} elseif (mysql_field_name($result, $i) == "day") {
$retval .= sprintf("<td bgcolor=%s>%s</input></td>",$color,$row[$i] ? $row[$i] : ' ');
} elseif (mysql_field_name($result, $i) == "date") {
$retval .= sprintf("<td bgcolor=%s>%s</input></td>",$color,$row[$i] ? $row[$i] : ' ');
} else {
$retval .= sprintf("<td bgcolor=%s><font class='status'>%s</a></td>",$color,$row[$i] ? $row[$i] : ' ');
}
}
}
[/PHP]
right now the output I currently get where I want to be the actual value of the textbox that is entered I am getting "textbox1.value" I also tried this.value and a few other ideas... anyone knoew waht I am missing?