no form datas send??

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

    #1

    no form datas send??


    It doesnt work to send data (simple text).

    I tryed everything (..i know) in httpd.conf
    and in php.ini.


    Has somebody a tipp for me?

    My system is Morphix (Debian)
    Apache 1.3 (tryed also with 2)
    PHP is 4.3.


    With my previaus redhat it worked fine
    I never had problems.
  • Quarco

    #2
    Re: no form datas send??

    /etc/php.ini

    register globals = on;

    tried that one?


    "Armin" <arminsradlwerk statt@aon.at> schreef in bericht
    news:41b8758b$0 $31890$91cee783 @newsreader01.h ighway.telekom. at...[color=blue]
    >
    > It doesnt work to send data (simple text).
    >
    > I tryed everything (..i know) in httpd.conf
    > and in php.ini.
    >
    >
    > Has somebody a tipp for me?
    >
    > My system is Morphix (Debian)
    > Apache 1.3 (tryed also with 2)
    > PHP is 4.3.
    >
    >
    > With my previaus redhat it worked fine
    > I never had problems.[/color]


    Comment

    • Armin

      #3
      Re: no form datas send??

      Quarco wrote:[color=blue]
      > /etc/php.ini
      >
      > register globals = on;
      >
      > tried that one?[/color]

      Thank you very much Quarco !!

      i tryed around 20 hours (in the last two weeks)

      it works!

      I had the same problem with a e-commerce (quick-cart)
      ... a online-shop without database, so everything is stored in text-files

      thanks again.

      Comment

      • Michael Fesser

        #4
        Re: no form datas send??

        .oO(Armin)
        [color=blue]
        >Quarco wrote:[color=green]
        >> register globals = on;
        >>
        >> tried that one?[/color]
        >
        >Thank you very much Quarco !!
        >
        >i tryed around 20 hours (in the last two weeks)
        >
        >it works![/color]

        Now turn it off again and learn how to do it properly with using the
        predefined arrays $_GET, $_POST etc.

        Using Register Globals
        PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


        Predefined variables


        Micha

        Comment

        • Armin

          #5
          Re: no form datas send??

          Michael Fesser wrote:[color=blue]
          > .oO(Armin)
          >
          >[color=green]
          >>Quarco wrote:
          >>[color=darkred]
          >>>register globals = on;
          >>>
          >>>tried that one?[/color]
          >>
          >>Thank you very much Quarco !!
          >>
          >>i tryed around 20 hours (in the last two weeks)
          >>
          >>it works![/color]
          >
          >
          > Now turn it off again and learn how to do it properly with using the
          > predefined arrays $_GET, $_POST etc.
          >
          > Using Register Globals
          > http://www.php.net/manual/en/security.globals.php
          >
          > Predefined variables
          > http://www.php.net/manual/en/languag...predefined.php
          >
          > Micha[/color]

          Hi Micha!

          In my case the php-program runs only in intranet.

          I guessed turn it on is a bit unsecure.


          So, i will learn how to do it without.

          Thanks for your help too!

          Armin




          Here are parts of the script:

          the form:
          ......
          <tr>
          <td align=center colspan=2>
          <form action="index.p hp" method="post">
          <br>Umsatz-tag, Brutto-Umsatz
          <br>
          <input name="tag" size=20 maxlength=30>
          <input name="umsatz" size=10>
          <br>
          <input type=submit value="speicher n" name="sp_umsatz ">
          </form>
          </td>

          <td align=center colspan=2>
          <form action="index.p hp" method="post">
          <br>Wareneinkau f, b=brutto n=netto, Betrag
          <br>
          <input name="ware" size=20 maxlength=30>
          <input name="steuer" size=3 maxlength=1>
          <input name="summe" size=10>
          <br>
          <input type=submit value="speicher n" name="sp_ware">
          </form>
          </td>





          save data:


          .......

          ############### # falls Eingaben >> speichern


          if (isset($sp_ware ))
          {
          if (($summe != "") && ($steuer != "") && ($ware != ""))
          {


          if ($steuer=="b") {
          $netto=($summe/6*5);
          }
          else {$netto=$summe;
          }

          #============== = formatieren der Daten:

          $netto =round ($netto, 2);

          ############### ## Datei einkauf.txt oeffnen und zeile anhaengen
          $e = fopen("data/einkauf.txt","a ");
          fputs($e, $ware."\t");
          fputs($e, $netto."\n");
          fclose ($e);
          }
          }


          if (isset($sp_umsa tz))
          {
          if (($umsatz != "") && ($tag != ""))
          {
          $umsatz_n = ($umsatz/6*5);
          $umsatz_n_r = round ($umsatz_n,2);

          ############## datei umsatz.txt oeffnen und zeile anhaengen

          $u = fopen("data/umsatz.txt","a" );
          fputs($u, $tag."\t");
          fputs($u, $umsatz_n_r."\n ");
          fclose ($u);
          }
          }

          ........

          Comment

          Working...