This topic is locked

Jump from edit page to another edit page

3/15/2010 11:53:37 PM
PHPRunner General questions
K
krot author

I am trying to use this snippet to jump from one edit page to an edit page of another table but keep geting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
$str = "<input type=\"button\" class=\"button\" value=\"Previous\" onclick=\"window.location= 'Step_1_edit.php?editid1=".$values["Unique_Id"]"'\" >";echo $str;

Sergey Kornilov admin 3/16/2010

It looks like you missing a dot after $values["Unique_Id"]

K
krot author 3/16/2010



It looks like you missing a dot after $values["Unique_Id"]


I get an error: Undefined variable: values

Sergey Kornilov admin 3/16/2010

This means you use this code in the place where $values array is not defined. Where do you put this code?