Forum Moderators: open
while or for loop to get data from mysql
{
echo username and number;
echo "<a href=\"www.ursite.something?param=".loopindex.">link name</a>";/* this creates a link for every entry and, when clicked, stores the index of that entry in variable param which can be used to fill in the textbox*/
}
?>
<form ....................>
<input type="text" name="mytext" size="50" value="<?php if ($param) echo whateveruwant;?>" >
</form>
Very rough - but I think it will give you the general idea.
page1.php
<form name="something">
<input type="text" name="otherthing"><a href="javascript pop up window thinger">
etc etc etc
page2.php
<a href=\"#\" onClick=\"opener.document.forms.SOMETHING.OTHERTHING.value='$searchreult';window.close();\">
This opens a new search window, searchs the database, returns and array. Then, each entry of the array has a hyperlink, which then fires that value back to the original window into the text form area.
Thanks for the reply again, though.