PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 31, 2022

[FIXED] How to prevent elements from being output

 August 31, 2022     pear, php, quickform     No comments   

Issue

I'm trying to create a form with quickform (default in the company).
This form is multipart but on 1 page.
I combine it with the sigma templating system.

The idea of the page is:

|-----------------------|<br>
|        header         |<br>
|-----------------------|<br>
|    content top        |<br>
|-----------------------|<br>
|first part of the form |<br>
|-----------------------|<br>
|second part of the form|<br>
|-----------------------|<br>
|        footer         |<br>
|-----------------------|

Now i have created this layout. But i have a problem with the form.
This form should be devided in the 2 pieces. But quickform doesn't support that.
I decided to write the top part of the form as a normal part of my template with those elements also available in quickform. (array with the id's which i also use to render the form).

Now comes the problem.
How do i prevent quickform/sigma from outputting the form elements?.

<!-- BEGIN qf_checkbox -->{qf_element}<!-- END qf_checkbox --> This works but outputs them,
<!-- BEGIN qf_checkbox --><!-- END qf_checkbox --> This doesn't work.

Greets, Erik


Solution

I solved it by just creating a seperate element just for the top form. It has all the properties from the qf_checkbox, and someother stuff that could be usefull.

That way, i didn't have to create hidden inputs or other hacks. I just show the top form with those extended checkboxes, and the bottom checkboxes are normal checkboxes. problem Sloved :).



Answered By - Erik
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing