Thank you very much, Thomas. It was a long and egsaustive
help. Nevertheless, it seems it still doesn't work.
At the moment my menu.php is
<?php
[omissis]
foreach ($line as $col_value) {
print "<td><a href=\"corpo.php?tema=$col_value\"
target=\"corpo\">$col_value</a></td>\n";
}
print "\t</tr>\n";
[omissis]
?>
<div>
<script type="text/javascript">
function dummy(x){
return x;
}
function selAut(o){
if (!o
|| !o.options
|| !o.selectedIndex
|| o.selectedIndex < 0)
return false;
var aut = o.options[o.selectedIndex].value;
var f =
(typeof encodeURIComponent != "undefined"
? encodeURIComponent
: (typeof escape != "undefined"
? escape
: dummy));
parent.corpo.location =
'http://www.laltrarete.it/mipiace/corpo.php?autore='
+ f(aut);
return true;
}
</script>
<form action="" onsubmit="selAut(this)">
seleziona gli articoli per autore:
<select name="autore" >
<?php
$queryAutore=mysql_query("select username
from autori");
while
($line=mysql_fetch_row($queryAutore){
foreach ($line as $autore) {
print ("<option name=\"autore\"
value=\"$autore\">$autore</option>"); }
}
?>
</select>
<input type=submit value="seleziona" >
</form>
[omissis]
but the problem is the same : the query string is passed but the url
passed is bad menu.php insteead of corpo.php
(upper case in the previous message was mine, just for emphasis).
[color=blue]
>also providing a server-side
>alternative with the `action' attribute[/color]
yes but how can i do that?
The first line of code above is only based on php,
but here i need some more compact (as a select) , in order to make the
page shorter.
Thank you again and sorry for my bad english
Marcello
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!