Hello
I'm having a particular problem using the custom code in chronoforms.
in the if section I can print the $buscarpor content if I use echo, but if I use:
it doesn't return anything.
using something like this:
does exactly what I want to do.
but I need that variable to be used in the textbox.
I'm having a particular problem using the custom code in chronoforms.
in the if section I can print the $buscarpor content if I use echo, but if I use:
if($detail[$buscarpor]==$form->data[input_text_4])
it doesn't return anything.
using something like this:
if($detail['nombre']==$form->data[input_text_4])
does exactly what I want to do.
but I need that variable to be used in the textbox.
Hi ghostpaladin,
Where do $detail and $buscarpor come from? Without that part of the code these lines don't mean anything.
Bob
Where do $detail and $buscarpor come from? Without that part of the code these lines don't mean anything.
Bob
sorry. I forgot to put it.
the $buscarpor variable comes from:
where data_input is a textbox content,
and the $detail part comes from:
the problem is in the if sentence.
if write the sentence
if($detail['num_serie']==$form->data[input_text_4]{[/code]
it does exactly what I want to do, but if I change the 'num_serie' with the $buscarpor variable
everything goes wrong, even if the content is only text.
it's very important this part to do my search section in my form.
the $buscarpor variable comes from:
$buscarpor = form->data[input]
where data_input is a textbox content,
and the $detail part comes from:
foreach($form->data['usuario'] as $detail){
if($detail[$buscarpor]==$form->data[input_text_4]{
the problem is in the if sentence.
if write the sentence
if($detail['num_serie']==$form->data[input_text_4]{[/code]
it does exactly what I want to do, but if I change the 'num_serie' with the $buscarpor variable
everything goes wrong, even if the content is only text.
it's very important this part to do my search section in my form.
This topic is locked and no more replies can be posted.