Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.1

Bug #11747 returnStart() and returnEnd()
Submitted: 2007-08-03 04:59 UTC
From: phpknight Assigned: danielc
Status: Wont fix Package: HTML_Form (version 1.3.0)
PHP Version: 5.2.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-08-03 04:59 UTC] phpknight (Jim Crile)
Description: ------------ According to Foundations of PEAR and what I can understand from the HTML_FORM.php file, returnStart() and returnEnd() should return opening and closing table tags respectively, but they don't. They only return FORM tags. I realized something was off when my table (created by return values) kept showing up in a straight line. I do not know how to fix it inside the class, etc., so I do not have a patch. Test script: --------------- $registrationForm = new HTML_Form ("pearbug1.php"); $rfStart=$registrationForm->returnStart(); $rfStart=htmlentities($rfStart); print "returnStart() return value is: $rfStart.<P> Where is the opening table tag that the docs specify?<HR>"; $rfEnd=$registrationForm->returnEnd(); $rfEnd=htmlentities($rfEnd); print "returnEnd() return value is: $rfEnd. <P>Where is the closing table tag? <P> I think these are bugs!"; Expected result: ---------------- To get return values with table tags. Actual result: -------------- I get return values with only form tags.

Comments

 [2011-11-16 19:40 UTC] danielc (Daniel Convissor)
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: danielc
display() returns a complete form including the table. start() / returnStart() just opens a form. I see your point. Alas, changing it at this point could break existing applications.