Posted by joboils on 06/02/07 17:17
I am trying various versions of this piece of code -
print("<input type=\"hidden\" name=\"table\" value='$TableName'>");
(the $TableName is a variable, depending on which file it is in) and
want to use it following a link -
<a href=\"envelope_print.php?id=$Row[id]\">$Row[id]</a>
so that the receiving file can use it like -
$TableName=$_REQUEST['table'];
$Query="SELECT * from $TableName where id='$id' ";
but none of them work.
I expect I'm doing something really stupid but I can't think what.
I have session_start(); at the beginning of each file and
register_globals() is On.
Can anyone help, please?
[Back to original message]
|