Thanks for the coding suggestion and the quick responses from the welcoming committee. We're trying to finish up our TCH site so that we can transfer our domain (www.pawsct.org) before our current hosting agreement expires on Thursday.
I don't think I explained my problem clearly, so I put together two simplified samples to see this helps:
rover.html
<HTML><BODY>
<A HREF="dogapp1.php?name_of_pet=Rover">
Click to adopt Rover</A>
</BODY></HTML>
dogapp1.php
<HTML><BODY>
<form method="post" name="form1">
<p>
Name of Pet: <INPUT name="name_of_pet"><BR>
Your name: <INPUT name="your_name"><BR>
Your address: <INPUT name="your_address"><BR>
</p></form></BODY></HTML>
I need the "Rover" value passed by rover.html to show as the default value for name_of_pet in dogapp1.php, while allowing the user to modify the value and fill in the rest of the form. I can do this manually by adding value="Rover" to the name_of_pet INPUT field, but can't pull the variable value in correctly.
I played with PHP commands (e.g., $_GET, $_POST, $_REQUEST) but can't get the syntax right. Can someone point me in the right direction to modify dogapp1.php to get Rover (or Fido or Fluffy ...) as the default? Thanks!!!
-- Bill