The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Layout of input form changes - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Layout of input form changes (/showthread.php?tid=62) |
Layout of input form changes - fti - Mar 16th, 2009 I'm somehow puzzled Created an input form with css only (no tables) it works fine as long as I have <form id="two" action="..." method="post"> on beginning of form. As soon as I add: <form action="name of directory..../form_tools/process.php" method="post"> <input type="hidden" name="form_tools_initialize_form" value="1" /> <input type="hidden" name="form_tools_form_id" value="2" /> the original form shows without any css. One can post on that form and it goes to formtools without issues but the input form looks horrible. What does happen that the css is ignored. Formtools did not give any errors and the html page validates too. RE: Layout of input form changes - Ben - Mar 17th, 2009 Hi FTI. Ah! Try just adding in the id="two" back into the generated HTML form Form Tools. So it would look liie tis: Code: <form id="two" action="name of directory..../form_tools/process.php" method="post"> The generated code is just really for your convenience: you're welcome to edit it however you want, adding in any other attributes you might like. Hope this helps! - Ben RE: Layout of input form changes - fti - Mar 17th, 2009 Ben: thank you very much that did it. A real simple solution which works perfect. As I'm not a pro....if you have time to explain, why would that other code change the css in the file??? RE: Layout of input form changes - Ben - Mar 17th, 2009 No problem! Nothing was actually changing the CSS - it's just that by omitting the id="" attribute, the CSS rules you defined aren't applied to the form, so it ends up looking different. That's pretty much it! Since Form Tools can't know all the form attributes each user wants to use, it just generates the simplest HTML that it needs which can then be edited. Hope that clears things up a bit. ![]() |