I have 2 files:
super_edit.php and test_form.php
in TEST_FORM.PHP i have this radio form:
<form method=“post” action=“super_edit.php”>
<p>
<label>
<input type=“radio” name=“message” value=“message”>
A message from the Superintendent</label>
<br>
<label>
<input type=“radio” name=“bio”>
Biography</label>
<br>
<label>
<input type=“radio” name=“mission”>
Mission Statement and District Goals</label>
<br>
<input type=“submit” value=“EDIT”>
</p>
</form>
in SUPER_EDIT.PHP i have this:
<?php
if( $name == “message” )
{
$superID = ‘11’;
$sql_body = “SELECT body FROM super WHERE id = $superID”;
$result_body = mysql_db_query(‘content’, $sql_body);
$row_body = mysql_fetch_array($result_body);
$body = $row_body[“body”];
?>
<form action="<?php echo($PHP_SELF); ?>" method=“post” name=“edit_sup”>
<textarea name=“edit_content” cols=“70” rows=“20”>
<?php echo $row_body[“body”]; ?>
</textarea>
</form>
<?php
}
else
{
echo (“You did not choose Superintendent’s Message, right, RIGHT?”);
}
?>
It never pics up the value of variable >message< as its setup in the TEST_FORM.PHP file. How can I pass the variable, know its contents, and use it in SUPER_EDIT.PHP???
Help will be very much appreciate it.
Leo :red: [COLOR=orange]<form method=“post” action=“super_edit.php”>[/COLOR]