Re: Question before I end up writing alot of extra code...
| From: | Shawn McKenzie | Date: | Mon, 07 Jul 2008 20:19:05 +0000 |
| Subject: | Re: Question before I end up writing alot of extra code... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276411@lists.php.net to get a copy of this message | ||
Jason Pruim wrote:
MAIN PAGE: <?PHPecho $row['Tab']; //what do you get?
if($row['Tab'] == "done"){print_r($_POST); //what do you get?$Tchecked1 = "CHECKED"; $Tchecked2 = NULL;}else{$Tchecked1 = NULL; $Tchecked2 = "CHECKED";} echo" <fieldset>Tab<BR> <input type="radio" name="rdoTab" value="done" $Tchecked1>Done <BR> <input type="radio" name="rdoTab" value="on" $Tchecked2>Not Done<BR> </fieldset>"; ?> PROCESSING: <?PHP
$tab = $_POST['rdoTab'];
$record = $_POST['txtRecord'];
$updateQuery = "UPDATE current SET Tab='$tab' WHERE Record='$record'";
mysqli_real_query($link, $updateQuery);
?>
You're saying now that that record now has field Tab=''?
-Shawn