Using a returned value for another search
Posted: Wed Mar 14, 2007 9:04 am
I may not be phrasing this correctly, so please forgive me.
I have a form which shows the results of a search. That form is working correctly and all fields are filled in properly, now what I want to do is permit the visitor to click on a 'submit' button next to one of the fields on the form and have the program pull in the data from the field and have the form open in a new browser window.
here is my php code
The new page show up but with no values. What have I messed up in my code?
Thank you
I have a form which shows the results of a search. That form is working correctly and all fields are filled in properly, now what I want to do is permit the visitor to click on a 'submit' button next to one of the fields on the form and have the program pull in the data from the field and have the form open in a new browser window.
here is my php code
Code: Select all
echo "<form action='pedigrees.php' method=post>";
echo "<table align='center' border='0'>";
echo "<tr>\n
<td align='center'><B>Animal ID</b></td>
</tr>";
echo "<tr>\n
<td align='left' bgcolor='#FFFFFF' input type='text' name='d' >$animalid</td>
</tr>";
echo "<tr>\n
<td align='center'> <input type=submit value=Pedigree> </td>
</tr>";
echo "</table>\n";
echo "</form>";Thank you