mam taki select
<? if (!$db) { exit; } $query = "select nazwa from kontrahenci"; } ?>
<? if (!$db) { exit; } $query = "select nazwa from kontrahenci"; } ?>
<?php function ShowSel() { if (!$db) { exit; } $query = "select nazwa from kontrahenci"; } } ?>
<?php // $dane = ""; } else { //pobieranie danych kontrahenta $dane = "aaa"; } ?>
<form action=" " method="post"> <select id="s" name="s" onchange="document.getElementById('hid').value='submit';this.form.submit()"> <?php ShowSel(); ?> <input id="hid" name="hid" type="hidden" value="" /> <<span style='color:blue'>input type="text" id="t" name="t" value="<?php echo $dane; ?>" /> </form>
<? if (!$db) { exit; } // $dane = "select nazwa from kontrahenci"; } else { //pobieranie danych kontrahenta $dane = "select miasto from kontrahenci"; } ?> <html> <form action=" " method="post"> <select id="s" name="s" onchange="document.getElementById('hid').value='submit';this.form.submit()"> <?php ShowSel(); ?> </select><br /><br /> <input id="hid" name="hid" type="hidden" value="" /> </form> </html>
<?php ?>
<?php if (!$db) { exit; } $query = "select nazwa from kontrahenci"; } } ?>
<script type="text/javascript"> <!-- function updateData(text) { var input = document.getElementById('t'); input.value = text; } --> </script> <? if (!$db) { exit; } $query = "SELECT miasto, nazwa FROM kontrahenci"; { } ?> <input type="text" id="t" name="t" value="" />
<?php if (!$db) { exit; } function ShowSel() { } } ?>
<?php } ?>
<?php ?>
<?php } else { } ?>