Loading ...
Sorry, an error occurred while loading the content.

AW: [PBML] Processing Formular Data

Expand Messages
  • Teifke Sascha ZFF FW-EI
    Hi Olly, this was just a typomistake. No, it doesn t work, yet :-( I hate java-script!
    Message 1 of 3 , May 2, 2001
    • 0 Attachment
      Hi Olly,

      this was just a typomistake. No, it doesn't work, yet :-(
      I hate java-script!

      > -----Urspr√ľngliche Nachricht-----
      > Von: Oliver Manickum [SMTP:oliver@...]
      > Gesendet am: Mittwoch, 2. Mai 2001 16:02
      > An: perl-beginner@yahoogroups.com
      > Betreff: RE: [PBML] Processing Formular Data
      >
      > Hey Sascha,
      >
      > If this is ur exact code then it looks like a javascript problem..
      >
      > if (thForm.submit.value == "Checkup")
      > should be
      >
      > if (theForm.submit.value == "Checkup")
      >
      > - Olly
      >
      >
      > -----Original Message-----
      > From: Teifke Sascha ZFF FW-EI [mailto:Sascha.Teifke@...]
      > Sent: 02 May 2001 02:14
      > To: 'perl-beginner@yahoogroups.com'
      > Subject: AW: [PBML] Processing Formular Data
      >
      >
      > Thank you Olly,
      >
      > you're on the right way. I tried it but it doesn't work. After pressing on
      > the "Checkup" Button the form data is still posted to script1 and not to
      > the
      > other.
      >
      > Here ist the complete html page:
      >
      > Thank you in advance!
      >
      > ----- snip -----
      > <html>
      > <head>
      > <title>
      > Password Ändern
      > </title>
      > <!--
      > <script language="JavaScript">
      > function checkForm(theForm){
      > if (thForm.submit.value == "Checkup")
      > {
      > window.location.replace("einfuegen.pl?logname=" +
      > theForm.logname.value + "&password=" + theForm.password.value +
      > "&password1=" + theForm.password1.value);
      > return false;
      > }
      > return true;
      > }
      > </script>
      > // -->
      > </head>
      > <body>
      > <table width="100%" border="0">
      > <tr>
      > <td width="10%" valign="top">
      >
      > </td>
      > <td align="center" valign="center">
      > <h2><b>
      > Bitte geben Sie das neue Passwort ein !
      > </h2></b>
      > </center>
      > </td>
      > </tr>
      > </table>
      > <br>
      > <hr><center>Alle Felder müssen ausgefüllt werden!</center>
      > <br><br>
      > <form action="test.pl" name="Form1" onSubmit="return checkForm(this);"
      > method=post>
      > <table border=1 align="center">
      > <tr>
      > <td height="30">
      > Benutzername:
      > </td>
      > <td><input name="logname" size=10 maxlength=8></td>
      > </tr>
      > <tr>
      > <td height="30">
      > Name:
      > </td>
      > <td><input type=password name="password" size=10 maxlength=8></td>
      > </tr>
      > <tr>
      > <td height="30">
      > Kostenstelle:
      > </td>
      > <td><input type=password name="password1" size=10 maxlength=8></td>
      > </tr>
      > </table>
      > <br><br>
      > <center>
      > <input type="button" name="js" value="Zurueck"
      > onclick="window.history.back()">
      > <input type="submit" name="submit" value="Weiter">
      > <input type="submit" name="submit" value="Checkup">
      > <input type="reset" value="Daten verwerfen">
      > </center>
      > </form>
      > </center>
      > <hr>
      > </body>
      > </html>
      > ----- snip -----
      >
      >
      > > -----Urspr√ľngliche Nachricht-----
      > > Von: Oliver Manickum [SMTP:oliver@...]
      > > Gesendet am: Mittwoch, 2. Mai 2001 10:56
      > > An: perl-beginner@yahoogroups.com
      > > Betreff: RE: [PBML] Processing Formular Data
      > >
      > > Hey There,
      > >
      > > I am going to assume that you are using a webpage for ur forms...
      > >
      > > do this
      > >
      > >
      > > <script language="JavaScript">
      > >
      > > function checkForm(theForm) {
      > >
      > > if (theForm.submit.value == "Get Date") {
      > > location.replace("postthat.pl?name=" + theForm.name.value +
      > > "&phone=" +
      > > theForm.phone.value) ;
      > > return(false)
      > > }
      > > return (true);
      > > }
      > >
      > > </script>
      > >
      > >
      > >
      > > <form name="whateva" action="postthis.pl" onSubmit="return
      > > checkForm(this)">
      > >
      > > <!-- form elements here..... -->
      > > <input type="submit" name="submit" value="Get Date">
      > > <input type="submit" name="submit" value="Submit All">
      > > </form>
      > >
      > >
      > > - I hope i was on the right track...
      > >
      > > - Olly
      > >
      > > -----Original Message-----
      > > From: Teifke Sascha ZFF FW-EI [mailto:Sascha.Teifke@...]
      > > Sent: 02 May 2001 09:19
      > > To: 'perl beginner'
      > > Subject: [PBML] Processing Formular Data
      > >
      > >
      > > Hello Perl-Gurus,
      > >
      > > I've got a formular with 3 text-input fields: "name", "phone", "street".
      > > Now I want to do the following:
      > > If you enter the value "name" into the field and you press the "get
      > date"
      > > button the
      > > name-value ist sent to a script that gets the data and fills out the
      > > fields
      > > "phone" and "street".
      > > If you fill out all values another script will be started an process the
      > > form data.
      > >
      > > The Problem ist, that I don't know how to make one formular with 2
      > submit
      > > buttons and 2 scripts.
      > >
      > > Thank you!
      > > Sascha
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > >
      > > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      > >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
      >
      >
      >
      >
      >
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.