Welcome Guest, Not a member yet? Register   Sign In
using a third party created form in my app
#5

(This post was last modified: 09-18-2020, 12:46 PM by richb201.)

Thanks John. I am using CI3, not 4. Is that an issue?

I got the form to appear by changing the .html to .php and calling it via load_view(). I'd like to display it up here, but don't know what app to use to show it here. Anyway, I have a few fields that I need to modify on it before showing it to the user. Here is a section of it:
<li class="form-line" data-type="control_checkbox" id="id_4">
        <label class="form-label form-label-top form-label-auto" id="label_4" for="input_4"> Which of these Business Components did you work on? </label>
        <div id="cid_4" class="form-input-wide">
          <div class="form-single-column" role="group" aria-labelledby="label_4" data-component="checkbox">
            <span class="form-checkbox-item" style="clear:left">
              <span class="dragger-item">
              </span>
              <input type="checkbox" class="form-checkbox" id="input_4_0" name="q4_whichOf[]" value="Type option 1" />
              <label id="label_input_4_0" for="input_4_0"> Type option 1 </label>
            </span>
            <span class="form-checkbox-item" style="clear:left">
              <span class="dragger-item">
              </span>
              <input type="checkbox" class="form-checkbox" id="input_4_1" name="q4_whichOf[]" value="Type option 2" />
              <label id="label_input_4_1" for="input_4_1"> Type option 2 </label>
            </span>
            <span class="form-checkbox-item" style="clear:left">
              <span class="dragger-item">
              </span>
              <input type="checkbox" class="form-checkbox" id="input_4_2" name="q4_whichOf[]" value="Type option 3" />
              <label id="label_input_4_2" for="input_4_2"> Type option 3 </label>
            </span>
            <span class="form-checkbox-item" style="clear:left">
              <span class="dragger-item">
              </span>
              <input type="checkbox" class="form-checkbox" id="input_4_3" name="q4_whichOf[]" value="Type option 4" />
              <label id="label_input_4_3" for="input_4_3"> Type option 4 </label>
            </span>
          </div>
        </div>
      </li>

I'd like to change, for example,  "Type option 1" to a field from one of my mySQL tables. Where do I do this? Do I just add some <php></php> to the top of this .php (really .html)  file? Can someone point me to a document that tells me how to replace some of those "value" fields? Should I embed some javascript (rather than php) in the top of the file?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: using a third party created form in my app - by richb201 - 09-18-2020, 12:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB