I have an index.php which has menu-part and body-part. It includes different forms into body-part and has URL in form of
http://myhost/index.php?page=2&category=5&query=1
Now I have a complex form which has dropdown lists like the following
<select name="dokliik" onChange="javascript:this.form.submit();">
Form header looks like this
<form name="dokument" action="<?php echo $PHP_SELF.'?did='.$dokliik.'&aid='.$alamliik.'&sid='.$seos; ?>" method="POST">
The problem is that when I select any of these dropdown lists in that included form, it jumps into new window with it's own URL
http://myhost/forms/dokument.insert.form.php?did=3&aid=23&sid=1
How can I tie these two URL-s? If I use the first link instead of $PHP_SELF I will get the form in the same window as needed but no values are passed and form just reloads it every time something is selected from it's lists.
Huh, anyone has a clue on this? 😕