Help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jennie

    Help

    Please overlook the Filemaker Pro database part. Does anyone see anything
    wrong with the script? Thanks

    <HTML>
    <HEAD>
    </HEAD>
    <script language="Javas cript">

    alert("To access the following area, you must pass a "
    +"members-only, authorization test.\n \n At the appropriate "
    +"time, enter in your Member ID and last 4 digits of your Social
    Security Number.")

    var username = prompt("Enter in your MEMBER I.D.","")
    var password = prompt("Enter in your Last 4 of Social Security Number","")
    var WebLogIn = username + "-" + password;

    </script>

    <FORM ACTION="FMPro" METHOD="post">
    <INPUT TYPE="hidden" NAME="-db" VALUE="WebMembe rs.fp5">
    <INPUT TYPE="hidden" NAME="-lay" VALUE="Data Input">
    <INPUT TYPE="hidden" NAME="-format" VALUE="detail.h tm">
    <input type="text" name="WebLogIn" value= "" OnSubmit= "WebLogIn">
    <input type="submit" name="-find" value="Login">
    </FORM>
    </HTML>


  • Hywel

    #2
    Re: Help

    In article <qI-dncsPY_dhBDjd4p 2dnA@adelphia.c om>, Jennie says...[color=blue]
    > Please overlook the Filemaker Pro database part. Does anyone see anything
    > wrong with the script? Thanks[/color]

    The form doesn't submit anywhere, and once the JavaScript has run (if it
    runs) the WebLogin variable is lost - it won't be submitted with the
    form data. Having the onSubmit in the input element is pointless - it
    should be in the form element.

    Overlooking the script is probably your best option.

    --
    Hywel I do not eat quiche


    Comment

    • Jennie

      #3
      Re: Help

      Where is the form element in my document? I am dense.....thank s?


      "Hywel" <hyweljenkins@h otmail.com> wrote in message
      news:MPG.1b0fd4 3932ce7b0e9896e f@news.individu al.net...[color=blue]
      > In article <qI-dncsPY_dhBDjd4p 2dnA@adelphia.c om>, Jennie says...[color=green]
      > > Please overlook the Filemaker Pro database part. Does anyone see[/color][/color]
      anything[color=blue][color=green]
      > > wrong with the script? Thanks[/color]
      >
      > The form doesn't submit anywhere, and once the JavaScript has run (if it
      > runs) the WebLogin variable is lost - it won't be submitted with the
      > form data. Having the onSubmit in the input element is pointless - it
      > should be in the form element.
      >
      > Overlooking the script is probably your best option.
      >
      > --
      > Hywel I do not eat quiche
      > http://kibo.org.uk/
      > http://kibo.org.uk/mfaq.php[/color]


      Comment

      • Lee

        #4
        Re: Help

        Jennie said:[color=blue]
        >
        >Please overlook the Filemaker Pro database part. Does anyone see anything
        >wrong with the script? Thanks[/color]

        The problem seems to be that you're trying to create an
        interactive web page without knowing enough HTML or
        Javascript. The resources in the FAQ should help you to
        get started learning. In the meantime, I think this is
        probably close to what you're trying to do:


        <html>
        <head>
        <script type="text/javascript">
        function validate(f){
        if(!f.id.value || !f.ssn.value){
        alert("Missing input");
        }else if(-1==f.id.value.s earch(/\w/)
        ||-1==f.ssn.value. search(/^\d{4}$/)){
        alert("Invalid input");
        }else{
        f.WebLogin.valu e=f.id.value+"-"+f.ssn.val ue;
        return true;
        }
        return false;
        }
        </script>
        <body>

        <form action="FMPro" method="post" onsubmit="retur n validate(this)" >
        <input type="hidden" name="-db" value="WebMembe rs.fp5">
        <input type="hidden" name="-lay" value="Data Input">
        <input type="hidden" name="-format" value="detail.h tm">
        <input type="hidden" name="WebLogIn" >

        <table>
        <tr>
        <td align="right">M ember ID: </td>
        <td><input name="id"></td>
        </tr>
        <tr>
        <td align=:right">L ast 4 digits of SSN: </td>
        <td><input name="ssn"></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td><input type="submit" name="-find" value="Login"></td>
        </table>

        </form>
        </html>

        Comment

        • Jennie

          #5
          Re: Help

          I will give a try later on..ty

          "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
          news:c85foi061i @drn.newsguy.co m...[color=blue]
          > Jennie said:[color=green]
          > >
          > >Please overlook the Filemaker Pro database part. Does anyone see anything
          > >wrong with the script? Thanks[/color]
          >
          > The problem seems to be that you're trying to create an
          > interactive web page without knowing enough HTML or
          > Javascript. The resources in the FAQ should help you to
          > get started learning. In the meantime, I think this is
          > probably close to what you're trying to do:
          >
          >
          > <html>
          > <head>
          > <script type="text/javascript">
          > function validate(f){
          > if(!f.id.value || !f.ssn.value){
          > alert("Missing input");
          > }else if(-1==f.id.value.s earch(/\w/)
          > ||-1==f.ssn.value. search(/^\d{4}$/)){
          > alert("Invalid input");
          > }else{
          > f.WebLogin.valu e=f.id.value+"-"+f.ssn.val ue;
          > return true;
          > }
          > return false;
          > }
          > </script>
          > <body>
          >
          > <form action="FMPro" method="post" onsubmit="retur n validate(this)" >
          > <input type="hidden" name="-db" value="WebMembe rs.fp5">
          > <input type="hidden" name="-lay" value="Data Input">
          > <input type="hidden" name="-format" value="detail.h tm">
          > <input type="hidden" name="WebLogIn" >
          >
          > <table>
          > <tr>
          > <td align="right">M ember ID: </td>
          > <td><input name="id"></td>
          > </tr>
          > <tr>
          > <td align=:right">L ast 4 digits of SSN: </td>
          > <td><input name="ssn"></td>
          > </tr>
          > <tr>
          > <td>&nbsp;</td>
          > <td><input type="submit" name="-find" value="Login"></td>
          > </table>
          >
          > </form>
          > </html>
          >[/color]


          Comment

          • Jennie

            #6
            Re: Help

            work great, anyway to make it open up the small dialog box like regular
            password do? Thanks



            "Jennie" <hnix@adelphia. net> wrote in message
            news:r9mdnRNhkP 1vxjvd4p2dnA@ad elphia.com...[color=blue]
            > I will give a try later on..ty
            >
            > "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
            > news:c85foi061i @drn.newsguy.co m...[color=green]
            > > Jennie said:[color=darkred]
            > > >
            > > >Please overlook the Filemaker Pro database part. Does anyone see[/color][/color][/color]
            anything[color=blue][color=green][color=darkred]
            > > >wrong with the script? Thanks[/color]
            > >
            > > The problem seems to be that you're trying to create an
            > > interactive web page without knowing enough HTML or
            > > Javascript. The resources in the FAQ should help you to
            > > get started learning. In the meantime, I think this is
            > > probably close to what you're trying to do:
            > >
            > >
            > > <html>
            > > <head>
            > > <script type="text/javascript">
            > > function validate(f){
            > > if(!f.id.value || !f.ssn.value){
            > > alert("Missing input");
            > > }else if(-1==f.id.value.s earch(/\w/)
            > > ||-1==f.ssn.value. search(/^\d{4}$/)){
            > > alert("Invalid input");
            > > }else{
            > > f.WebLogin.valu e=f.id.value+"-"+f.ssn.val ue;
            > > return true;
            > > }
            > > return false;
            > > }
            > > </script>
            > > <body>
            > >
            > > <form action="FMPro" method="post" onsubmit="retur n validate(this)" >
            > > <input type="hidden" name="-db" value="WebMembe rs.fp5">
            > > <input type="hidden" name="-lay" value="Data Input">
            > > <input type="hidden" name="-format" value="detail.h tm">
            > > <input type="hidden" name="WebLogIn" >
            > >
            > > <table>
            > > <tr>
            > > <td align="right">M ember ID: </td>
            > > <td><input name="id"></td>
            > > </tr>
            > > <tr>
            > > <td align=:right">L ast 4 digits of SSN: </td>
            > > <td><input name="ssn"></td>
            > > </tr>
            > > <tr>
            > > <td>&nbsp;</td>
            > > <td><input type="submit" name="-find" value="Login"></td>
            > > </table>
            > >
            > > </form>
            > > </html>
            > >[/color]
            >
            >[/color]


            Comment

            • Jennie

              #7
              Re: Help

              When i first open the page i want to get a pop up box to put input
              in....Thanks


              "Jennie" <hnix@adelphia. net> wrote in message
              news:r9mdnRNhkP 1vxjvd4p2dnA@ad elphia.com...[color=blue]
              > I will give a try later on..ty
              >
              > "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
              > news:c85foi061i @drn.newsguy.co m...[color=green]
              > > Jennie said:[color=darkred]
              > > >
              > > >Please overlook the Filemaker Pro database part. Does anyone see[/color][/color][/color]
              anything[color=blue][color=green][color=darkred]
              > > >wrong with the script? Thanks[/color]
              > >
              > > The problem seems to be that you're trying to create an
              > > interactive web page without knowing enough HTML or
              > > Javascript. The resources in the FAQ should help you to
              > > get started learning. In the meantime, I think this is
              > > probably close to what you're trying to do:
              > >
              > >
              > > <html>
              > > <head>
              > > <script type="text/javascript">
              > > function validate(f){
              > > if(!f.id.value || !f.ssn.value){
              > > alert("Missing input");
              > > }else if(-1==f.id.value.s earch(/\w/)
              > > ||-1==f.ssn.value. search(/^\d{4}$/)){
              > > alert("Invalid input");
              > > }else{
              > > f.WebLogin.valu e=f.id.value+"-"+f.ssn.val ue;
              > > return true;
              > > }
              > > return false;
              > > }
              > > </script>
              > > <body>
              > >
              > > <form action="FMPro" method="post" onsubmit="retur n validate(this)" >
              > > <input type="hidden" name="-db" value="WebMembe rs.fp5">
              > > <input type="hidden" name="-lay" value="Data Input">
              > > <input type="hidden" name="-format" value="detail.h tm">
              > > <input type="hidden" name="WebLogIn" >
              > >
              > > <table>
              > > <tr>
              > > <td align="right">M ember ID: </td>
              > > <td><input name="id"></td>
              > > </tr>
              > > <tr>
              > > <td align=:right">L ast 4 digits of SSN: </td>
              > > <td><input name="ssn"></td>
              > > </tr>
              > > <tr>
              > > <td>&nbsp;</td>
              > > <td><input type="submit" name="-find" value="Login"></td>
              > > </table>
              > >
              > > </form>
              > > </html>
              > >[/color]
              >
              >[/color]


              Comment

              • Hywel

                #8
                Re: Help

                In article <HdedncmSIKdRrz vdRVn-jA@adelphia.com >, Jennie says...[color=blue]
                > "Hywel" <hyweljenkins@h otmail.com> wrote in message
                > news:MPG.1b0fd4 3932ce7b0e9896e f@news.individu al.net...[color=green]
                > > In article <qI-dncsPY_dhBDjd4p 2dnA@adelphia.c om>, Jennie says...[color=darkred]
                > > > Please overlook the Filemaker Pro database part. Does anyone see[/color][/color]
                > anything[color=green][color=darkred]
                > > > wrong with the script? Thanks[/color]
                > >
                > > The form doesn't submit anywhere, and once the JavaScript has run (if it
                > > runs) the WebLogin variable is lost - it won't be submitted with the
                > > form data. Having the onSubmit in the input element is pointless - it
                > > should be in the form element.
                > >
                > > Overlooking the script is probably your best option.[/color][/color]
                [color=blue]
                > Where is the form element in my document?[/color]

                Here:
                <FORM ACTION="FMPro" METHOD="post">

                [color=blue]
                > I am dense.....thank s?[/color]

                I've got two words to use here: "apparently " and "possibly". You
                choose.

                --
                Hywel I do not eat quiche


                Comment

                Working...