How do I add a variable - say hidden variable where <input name=owner value=enzo> to a hyperlink or action:
ie <form action="...php"> when I submit I need the action to be "...php?owner=enzo" where 'enzo' is derived from the hidden input variable.
Thanks in advance!
you mean how do I write <a href="script.php?key=val&key=val">click me</a>?
Yes, (I think)- my problem is getting the "value" into the string, where the value is either a hidden value or entered via a previous form and forwarded as part of <form method=get action=...>
POST and GET vars are registered as global variables usually, so you could just try printing them like this:
echo "<a href=script.php?key=".$var_from_form."&other_key=".$var_from_URL.">click me</a>";