I have an input form with approximately 16 text boxes which the user fills out and then submits. What I need next to three of these fields is a link to search for existing values in my database in the event the user does not know any of the valid entries for those particular fields. Is there any simple way for me to open a search page to locate the correct value and then return to the input form while still preserving the input the user has already entered? I'm trying to avoid passing all 16 variables through these pages if at all possible. Here is a sample of what my form looks like:
<table border="0" cellspacing="0" cellpadding="0" width="805">
<tr>
<form action="<? echo($PHP_SELF); ?>" method="post">
<td valign="top" width="50%">
<table border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="80" align="right">Field 1:</td>
<td><input type="Text" name="nID" value="<? echo $node; ?>" size="25" maxlength="20"></td>
</tr>
<tr>
<td width="80" align="right">Field 2:</td>
<td><input type="Text" name="sID" value="<? echo $site; ?>" size="25" maxlength="8"></td>
<td><? // I need a link next to this input box. to search for Field 2 values.. ?></td> </tr>
.
.
.
<input type="Submit" name="ADD" value="Add New">
</form>
Thanks in advance for any suggestions you might have.