Login   Register  
PHP Classes
elePHPant
Icontem

Hidden objects adds html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      AdvancedForm  >  All threads  >  Hidden objects adds html  >  (Un) Subscribe thread alerts  
Subject:Hidden objects adds html
Summary:Hidden object adds <tr></tr><tr></tr> for every hidden field
Messages:1
Author:Martin
Date:2005-10-27 21:11:44
 

  1. Hidden objects adds html   Reply   Report abuse  
Picture of Martin
Martin
2005-10-27 21:11:44
Hello Bulent Tezcan

I must start with, advanced forms is a really great utility, and I use it a lot :-)

Sorry but I cant say its absolut perfect, but I can say its almost perfect :-)

The only thing I can see where there is a problem are when you use
<input type='hidden' value=xxx>

I will post an example here:

<input class="formButton" type="submit" name="changemode" value="Skift til sorterings mode" />
</td>
</tr>
<tr>
</tr>

<tr>
</tr>


<!-- Start of passtru values -->


<!-- Start of Hidden Values -->


<input type="hidden" name="sortering" value="" />

<input type="hidden" name="links" value="1" />


<!-- End of passtru values -->
</table>

As you can see - the <tr></tr> is really annoying :(
I have tried to found a solution, but no good :(

And here is the php code I use:

$buttons = new ObjectArray("buttons");
$buttons->AddObject(new SubmitButton( $name="changemode",$value=$sub));
$buttons->SetCellAttributes(array("align"=>"center"));
$buttons->SetColSpan(2);
$main->AddFormElement($buttons);

$main->AddFormElement(new Hidden("sortering",$_GET["sortering"]));
$main->AddFormElement(new Hidden("links",$_GET["links"]));
print $main->GetFormInTable();

Does you have an solution - or a upgrade?
I have by myself made som small changes, fx <input type=xxx /> (for xhtml validation :)

PS:
Sorry about my bad english, hope you will understand it.

--
Martin