hi i am trying to call a php function called "select". so far i have
[HTML]<form action="select" method="post">[/HTML]
the function is in the head of the html document.
here is the entirety of the form.
I will need to submit this same form to several different functions throughout the page so that is why i use the method i chose
[HTML]
<form method="post" action=<? echo '"', $func, '"'; ?>>
<select>
<option>asdf</option>
<?
////////////////////////////////////////////
//this section will allow a teacher to
//choose whcih student they would
//like to edit the settings for at this
//time it will be the only visible
//input on the screen.
////////////////////////////////////////////
$i=1;
while ($i<=$row)
{
$row2=mysql_fet ch_row($result) ;
echo '<option value="', $row2[1], '">', $row2[2], '</option>';
$i++;
}
$func="select";
?>
</select>
<input type="submit">
</form>
[/HTML]
and the function i am sending it to
[HTML]
function selectclass($lo g)
{
$_SESSION['login'] = $log;
$display=1;
}
[/HTML]
thanks in advanced to any help
[HTML]<form action="select" method="post">[/HTML]
the function is in the head of the html document.
here is the entirety of the form.
I will need to submit this same form to several different functions throughout the page so that is why i use the method i chose
[HTML]
<form method="post" action=<? echo '"', $func, '"'; ?>>
<select>
<option>asdf</option>
<?
////////////////////////////////////////////
//this section will allow a teacher to
//choose whcih student they would
//like to edit the settings for at this
//time it will be the only visible
//input on the screen.
////////////////////////////////////////////
$i=1;
while ($i<=$row)
{
$row2=mysql_fet ch_row($result) ;
echo '<option value="', $row2[1], '">', $row2[2], '</option>';
$i++;
}
$func="select";
?>
</select>
<input type="submit">
</form>
[/HTML]
and the function i am sending it to
[HTML]
function selectclass($lo g)
{
$_SESSION['login'] = $log;
$display=1;
}
[/HTML]
thanks in advanced to any help
Comment