This topic is locked

Problem with edit page and before record updated

7/2/2008 3:08:49 PM
PHPRunner General questions
M
marpunta author

Hi
In the edit page and before record updated

i put the following code

if ($values['ejoflisi']==1)

{

$values["tamEispra"] =$values["posoEispra"];
$values["tamEkdo"] = $values["posoEkdo"];

}

return true;


BUT i does not working
If i try it with number values like this

if ($values['ejoflisi']==1)

{

$values["tamEispra"] =0;
$values["tamEkdo"] = 0;

}

return true;


It is working fine
Where is the problem???
PS I also tried to put the values in single quotes

if ($values['ejoflisi']==1)

{

$values["tamEispra"] ='$values["posoEispra"]';
$values["tamEkdo"] = '$values["posoEkdo"]';

}

return true;


but it does not working also
Thanx

J
Jane 7/3/2008

Hi,
you don't need single quotes around field values in your code.

Please make sure posoEispra and posoEkdo field are on the edit page.
If it doesn't help publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.