2 Replies Latest reply on Sep 16, 2008 6:45 PM by Saw_duuhst

    Spry text validation on record update form..not working

    Saw_duuhst
      Hello I am new at all this, hopefully someone can help.
      I am on a localhost php mysql setup. I will not be a "live" website so I am not worried about security. I am working on my first ever mysql php dreamweaver project, learning as I go.

      I have made a form that creates a record, this form has a date validation spry that I inserted from the spry menu, it works fine. I.E can not create a new record with wrong format date.

      I have made a second form to update the record. and this form works great once I learned how to send the url variable correctly..

      ----When I try to add the same spry text validation to the update form it never works, it will turn the background of the date box yellow as if it wants to validate but thats it.

      I have been looking at tutorials and the adobe site and have seen it said that sometimes you have to edit the code by hand after inserting a spry....they didnt say how/what though.

      Here is the code (after validation has been added).

      I really appreciate any help fixing this form.
      Thank you for your time

        • 1. Re: Spry text validation on record update form..not working
          Level 7
          No <body></body> tags?

          Anyhow - is this the field in question?

          <td><span id="sprytextfield1">
          <input type="text" name="Dob" value="<?php echo
          $row_Recordset1['Dob']; ?>" size="32" />
          <span class="textfieldRequiredMsg">A value is required.</span><span
          class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>

          and this is the desired format? dd/mm/yyyy

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "Saw_duuhst" <webforumsuser@macromedia.com> wrote in message
          news:gapccr$nlr$1@forums.macromedia.com...
          > Hello I am new at all this, hopefully someone can help.
          > I am on a localhost php mysql setup. I will not be a "live" website so I
          > am
          > not worried about security. I am working on my first ever mysql php
          > dreamweaver
          > project, learning as I go.
          >
          > I have made a form that creates a record, this form has a date validation
          > spry
          > that I inserted from the spry menu, it works fine. I.E can not create a
          > new
          > record with wrong format date.
          >
          > I have made a second form to update the record. and this form works great
          > once
          > I learned how to send the url variable correctly..
          >
          > ----When I try to add the same spry text validation to the update form it
          > never works, it will turn the background of the date box yellow as if it
          > wants
          > to validate but thats it.
          >
          > I have been looking at tutorials and the adobe site and have seen it said
          > that
          > sometimes you have to edit the code by hand after inserting a spry....they
          > didnt say how/what though.
          >
          > Here is the code (after validation has been added).
          >
          > I really appreciate any help fixing this form.
          > Thank you for your time
          >
          >

          • 2. Spry text validation on record update form..not working
            Saw_duuhst Level 1
            I rebuilt the form completly, making sure to include tags. and it works fine now.

            Thank you so much!