We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE and forms

Development and Programming

mhulse's avatar
mhulse
329 posts
about 17 years ago
mhulse's avatar mhulse

Hi,

Anyone know of an extension that will override the XHTML output of forms?

Or, could one give me a good example of how I could use “form_declaration_return” to change line 518 of core.functions.php:

Change this:

$form .= '<input type="hidden" name="'.$key.'" value="'.$REGX->form_prep($val).'" >'."\n";

To this:

$form .= '<input type="hidden" name="'.$key.'" value="'.$REGX->form_prep($val).'">'."\n";

Basically, I would like to convert the XHTML output to HTML.

It would be cool if this were built-in to EE somehow… Maybe some sort of admin CP option to control output of EE generated HTML?

For now, until I can find the time to write and extension, I will be modifying the core functions file. :(

Thanks all!

       
Max Lazar's avatar
Max Lazar
337 posts
about 17 years ago
Max Lazar's avatar Max Lazar

I think you have only one option - copy all lines from 472 to 522 in your extension and change just one symbol 😉
I don’t know is it will fine with ExpressionEngine Module License copy part of core system in extension?

example:

       
mhulse's avatar
mhulse
329 posts
about 17 years ago
mhulse's avatar mhulse
I think you have only one option - copy all lines from 472 to 522 in your extension and change just one symbol 😉 I don’t know is it will fine with ExpressionEngine Module License copy part of core system in extension? example:

Wow, MaxUp! Thanks for tips and example!!!

I will have time tomorrow to look at your example! I am stoked!!!!

It has been a while since I fiddled with writing plugins, and I never dealt with extensions… But I love how easily one can hook into the system. 😊

At some point, I will also be wanting to modify the captcha output also.

Again, it would be super cool to have an option built into the admin where one could change the HTML output. I used to always use an XHTML DTD, but HTML 4.01 Strict makes more sense to me these days.

Anyway, a billion thanks MaxUp!

Have a great night. I may be back with more questions!

Cheers, Micky

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.