Two forms

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

    #16
    Re: Two forms

    Shelly wrote:
    Not a problem getting the script, but I fixed it a different way. I
    had posted this to this group and to alt.comp.lang.p hp. Gleep
    answered there and that led me in the right track. What I did was
    use javascript with onchange in formA's drop-=down list to set a
    hidden variable in formB. Then when I hit a submit button in formB, I
    read the value of that hidden variable. it works like a charm -- and
    I can use that to do other things as well in other code.
    >
    Thank you four your help and interest.
    My main problem with that solution:
    If in the single form solution I gave javascript doesn't kick in/is
    disabled, everything can work as planned, only in the same window instead
    of a new one.

    In the 2 form solution, if javascript is disabled, you'll get a new window
    with an error, because is lacks data.
    --
    Grtz,

    Rik Wasmus


    Comment

    • Shelly

      #17
      Re: Two forms

      Good point. Let me think on it.

      "Rik" <luiheidsgoeroe @hotmail.comwro te in message
      news:234f9$4536 8d15$8259c69c$2 8462@news1.tude lft.nl...
      Shelly wrote:
      >Not a problem getting the script, but I fixed it a different way. I
      >had posted this to this group and to alt.comp.lang.p hp. Gleep
      >answered there and that led me in the right track. What I did was
      >use javascript with onchange in formA's drop-=down list to set a
      >hidden variable in formB. Then when I hit a submit button in formB, I
      >read the value of that hidden variable. it works like a charm -- and
      >I can use that to do other things as well in other code.
      >>
      >Thank you four your help and interest.
      >
      My main problem with that solution:
      If in the single form solution I gave javascript doesn't kick in/is
      disabled, everything can work as planned, only in the same window instead
      of a new one.
      >
      In the 2 form solution, if javascript is disabled, you'll get a new window
      with an error, because is lacks data.
      --
      Grtz,
      >
      Rik Wasmus
      >
      >

      Comment

      • Shelly

        #18
        Re: Two forms

        For the time being, what I will do is test on a particular variable and if
        it is not set, then I will header to an error page where I will display a
        message that Javascript must be enabled. Long term, I'll make your solution
        work.


        "Rik" <luiheidsgoeroe @hotmail.comwro te in message
        news:234f9$4536 8d15$8259c69c$2 8462@news1.tude lft.nl...
        Shelly wrote:
        >Not a problem getting the script, but I fixed it a different way. I
        >had posted this to this group and to alt.comp.lang.p hp. Gleep
        >answered there and that led me in the right track. What I did was
        >use javascript with onchange in formA's drop-=down list to set a
        >hidden variable in formB. Then when I hit a submit button in formB, I
        >read the value of that hidden variable. it works like a charm -- and
        >I can use that to do other things as well in other code.
        >>
        >Thank you four your help and interest.
        >
        My main problem with that solution:
        If in the single form solution I gave javascript doesn't kick in/is
        disabled, everything can work as planned, only in the same window instead
        of a new one.
        >
        In the 2 form solution, if javascript is disabled, you'll get a new window
        with an error, because is lacks data.
        --
        Grtz,
        >
        Rik Wasmus
        >
        >

        Comment

        Working...