hi all i am sending data from an html form to an update page but since this is still my first script i don't know this step. i've read some stuff on php.net and echoecho but still can't figure how to get my post data being sent
my form sends:
two textareas
one text input
and two selects
i know i need the $_POST command but how do i get my variables from the new page
thanks for any help
here is the form if you need it
-
<form action="update.php" method="post">
-
<select>
-
<?
-
$i=1;
-
while ($i<=$row)
-
{
-
$row2=mysql_fetch_row($result);
-
echo '<option value="', $row2[1], '">', $row2[2], '</option>';//outputs the unique login name
-
$i++;
-
}
-
?>
-
</select>
-
-
<select>
-
<?
-
-
$j=1;
-
-
while ($j<=$classrow)
-
{
-
$row3=mysql_fetch_row($classlst);
-
echo '<option value="', $row3[1], '">', $row3[1], '</option>';
-
$j++;
-
}
-
-
?>
-
</select>
-
<input type="text" maxlength="5" name="grade" id="grade" value="grade">
-
<br />
-
<textarea name="assignments" rows="15" cols="67" id="assignments">assignments</textarea>
-
<br />
-
<textarea name="comments" rows="15" cols="67" id="comments">comments</textarea>
-
<input type="submit">
-
</form>
-