Announcement

Collapse
No announcement yet.

HTML corruption

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML corruption

    <input name="p" type="hidden" id="p" value="12">
    <input type="hidden" name="nlbox[1]" value="97">
    this is part of a table for a mailing list subscribe to a managed mailing facility to identify the list

    howver thisis pasted into a brochure fragment with !!<<form etc.... </form>>!!

    but somehow actinic messes up this line and generates this

    <input name="p" id="p" value="12" type="hidden"><input name="nlbox&lt;Actinic:Variable Name = '1'/&gt;" value="97" type="hidden">
    i've lost my square brackets and my form doesn't work... any ideas please

    #2
    You could make a 'new' fragment layout and hard code it into that perhaps.

    Comment


      #3
      The square brackets are probably the problem as actinic parses the contents for the link text off the link tab, maybe it's getting confused, it should only be looking at [LINK], but maybe its not?

      Comment


        #4
        I'm using brochure layout text only, unless i misunderstand you duncan

        heres the code in my fragment

        Code:
        !!<
        <form name="" method="post" action="http://xxxxxxxxxx.co.uk/ui/box.php">
        <table border="0" cellspacing="0" cellpadding="6">
        <tr> 
        <td width="100" height="35"><div align="right">E-mail</div></td>
        <td height="35"><div align="right"> 
        <input name="email" type="text" id="email"  size="50">
        </div></td>
        </tr>
        <tr> 
        <td width="100" height="35"><div align="right">Name</div></td>
        <td height="35"><div align="right"> 
        <input name="name" type="text" id="name"  size="50">
        </div></td>
        </tr>
        
        <tr> 
        <td width="100" height="35"><div align="right"> </div></td>
        <td height="35"> <div align="left">     
        <input name="funcml" type="radio" value="add" checked>Subscribe
        </div></td>
        </tr>
        <tr> 
        <td width="100" height="35"><div align="right"> </div></td>
        <td height="35"> <div align="left">     
        <input name="funcml" type="radio" value="unsub2">Unsubscribe
        </div></td>
        </tr>
        <tr> 
        <td width="100" height="35"><div align="right">
        <input name="p" type="hidden" id="p" value="12">
            <input type="hidden" name="nlbox[1]" value="999">
        </div></td>
        <td height="35"> <div align="right"> 
        <br> 
        <input type="submit" name="Submit" value="Submit">
        </div></td>
        </tr>
        </table>
        </form>
        
        >!!
        
        
        We will only use this information for our purposes, we will not pass your information on to any 3rd party.
        heres the generated code...
        xxx.co.uk/acatalog/test/acatalog/Join_Mailing_List.html

        Comment


          #5
          The square brackets are probably the problem as actinic parses the contents for the link text off the link tab, maybe it's getting confused, it should only be looking at [LINK], but maybe its not?
          how do i fix it?

          pls don't tell me to fix it online?

          Comment


            #6
            am i right in thinking that the [link] only gets parsed if you select this option in the tabs?

            use a static link in html and disable any [link]s?

            Comment


              #7
              am i right in thinking that the [link] only gets parsed if you select this option in the tabs?

              use a static link in html and disable any [link]s?
              not really an option as i use brochure fragments with links all over the place...

              I've copied the correct code onto the incorrect code on the webserver to test the mailing list signup it now works.

              Maybe my only option is to take the mailing lisy sign up pages out od brochure for the time being...

              Comment


                #8
                why does actinic re-arrange the attributes in your code?

                Comment


                  #9
                  why does actinic re-arrange the attributes in your code?
                  thats what i want to know, whats the point of !!<HTML here>!! if its going to mess with it anyway.

                  Is there a way i can bring the code in as a txt file? I would prefer to keep this a brochure so the client can change the competiton without me getting involved. i can't have it overwritting the incorrect code each time they refresh.

                  Comment


                    #10
                    use a php include?

                    Comment


                      #11
                      ok is it as simple as this

                      add this to the brochure fragment
                      Code:
                      !!<
                      <actinic:block php="true">
                      include('mycodehere.txt');
                      </actinic:block>
                      >!!
                      and then upload a txt file with the form code in it?

                      Comment


                        #12
                        and the answer to this is YES, YES, YES

                        Comment


                          #13
                          lolz.

                          w00t, result!

                          Comment


                            #14
                            Just replace anything within square brackets e.g.

                            firstgoat = goats[1];

                            with

                            firstgoat = goats[ 1 ];

                            And you'll be fine. Actinic parses anything alphanumeric within square brackets only if the enclosed text touches each bracket. Leave a space and you're fine.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #15
                              Another great tip from Norman that I won't forget. Thanks.

                              EDIT - or maybe I should say:

                              Another tip from great Norman that I won't forget.

                              Comment

                              Working...
                              X