Hello people!
This probably will not be a challenge for you, but for me it is!
On my webpage I have a menu entry, together with a dropdown box.
Well, this is not the challenge.
On every dropdown box there is an 'onchange' event, which calls
a program that stores the chosen value in the database and then
returns to the menu to refresh everything.
There is a timing problem, I think. When I look in the source,
after the webpage has been built, there's an 'undefined variable'.
Below you will find the script. I hope you can help me with this
one, because I can't figure it out. Thanks in advance!
<form enctype="multipart/form-data" action="tp_hoofdmenu.php" method="POST">
:
:
<SELECT NAME="volgorde" onchange="Javascript: submit();">
<?php for ($i = 0; $i <= $Rijen; $i++) { ?>
<OPTION VALUE="<?php echo(str_repeat('0', 3 - strlen(trim($i))).trim($i)); ?>" <?php if($i == $order) { echo("SELECTED"); } ?>>
<?php echo(str_repeat('0', 3 - strlen(trim($i))).trim($i)); ?>
</OPTION>
<?php } ?>
</SELECT>
:
:
</form>
I've tried hidden variables, but that doesn't help much. I only get to see the last shown line on the webpage.