nother question i have...
im making a form with three radio buttons and when ever i use post to submit it to $PHP_SELF, the checked radio button resets itself.. Is there any other way i can do this:
<form method="post" action="<?php echo($PHP_SELF); ?>">
Display usages in:
<br>
<input type="radio" value="kb" name="size">Kilobytes<br>
<input type="radio" value="mb" name="size">Megabytes<br>
<input type="radio" value="gb" name="size">Gigabytes<br>
<input type="submit" value="Change">
</form>
<?php
$size = $_POST['size'];
if ($size == "kb") {
$set = 1;
} elseif ($size == "mb") {
$set = 1024;
} elseif ($size == "gb") {
$set = 2048;
} else {
$set = 1;
}
echo $set;
?>
without having to insert
<?php if ($set==blahbum) print "checked=\"checked\"";?>
between each radiobutton input tag?
thanks so much