Hi! Could somebody help me?
<form name="SelectSubject" method="post">
<select name="subject" onchange="SelectSubject.submit();">
<option value="" selected >Select your class</option>
<?php echo Get_Subject($inn_email, $place, $class); ?>
</select></FORM>
In the Get_Subject function, it returns values from Oracle DB:
$nrows = OCIFetchStatement($Statement,$results);
if ( $nrows > 0 ) {
for ( $i = 0; $i < $nrows; $i++ ) {
reset($results);
while ( $column = each($results) ) {
$data = $column['value'];
print ("<option>$data[$i]</option>\n");
}
}
}
The problem here is that when I submit tis form, only the varible $subject has value.
I had varibles: $email, $place, $class got from earlier functions on the same page...
This should be a login AND a selection page...
The question is: how do I make my "old" varibles accessable with values used earlier?
each selection, reload the same page and use of if-statement for dynamic loading of pages....
Please help! 😃