This topic is locked

Parameter

10/15/2009 11:14:28 AM
PHPRunner General questions
T
taumic author

Hallo,
I have questions about parameters (db-fields).

On the listpage i have create a button with following code:



// Put your code here.

$str = "<FORM><INPUT TYPE=\"button\" VALUE=\"Vorschau\" onclick=\"window.location.href='http://localhost/!MT_RgPDF/rechnung.php?rg={$RGK_NR}'\"></FORM>";;

echo $str;


where RGK_NR is the field-name from my database.

I want to give this field as a parameter to the script "RECHNUNG.PHP", but I get an error ==> "undefined variable:RGK_NR".

Now the Questions:

  1. what is the right declaration for the parameter (RGK_NR) in the code above ?
  2. how can i get the content of the field "RGK_NR" in a variable to use it in the script RECHNUNG.PHP ?
    Many thanks in advance !!
    Mike