foreach loop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #16
    I should mention that your arrays aren't necessarily going to be the same length, some may be shorter, some may be longer. In an ideal world, we would be fine assuming they are the same, but, alas, we aren't, so you should incorporate some checks into your code to prevent any errors.

    - Mark.

    Comment

    • anfetienne
      Contributor
      • Feb 2009
      • 424

      #17
      hi markus.....ive tested it with the different lengths of values stored in the arrays varying from 1 character to 250 characters and i get no errors at all.....thanks again

      Comment

      • anfetienne
        Contributor
        • Feb 2009
        • 424

        #18
        Here feel free to test the upload sequence @



        Once images are uploaded you can view their directory @

        http://ve-creative.com/test/8/upload/randomdigit (please copy and paste the random digit generated on the first page and paste where "randomdigi t")

        Uploaded images are shown on the edit page.....please feel free to test the captions form underneath the images and click submit

        the xml file created can be found @
        http://ve-creative.com/test/8/xmlf (you can download the xml to see what is generated)

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #19
          Looks like it is all working.

          Couple of ideas: if an image has a caption, it would be useful to see that caption in it's caption input area. Currently, when you add captions, the inputs remain blank.

          Also, your submit buttons, when not hovered over, appear 'disabled'. If you've ever seen a disabled form element, they have a greyish overlay, like your normal buttons do. This may be distracting.

          And congrats.

          Comment

          • anfetienne
            Contributor
            • Feb 2009
            • 424

            #20
            loool i know exactly what you are saying but I can only work to what a client asks for and its not to distract people from their main objective.

            Right now I am just sorting out how I want to structure my database for this app....once i've got my structure I will be adding in the captions so people can view it once they saved them

            Comment

            Working...