By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

no form datas send??

P: n/a

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.
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
/etc/php.ini

register globals = on;

tried that one?
"Armin" <ar*****************@aon.at> schreef in bericht
news:41***********************@newsreader01.highwa y.telekom.at...

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.

Jul 17 '05 #2

P: n/a
Quarco wrote:
/etc/php.ini

register globals = on;

tried that one?


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.
Jul 17 '05 #3

P: n/a
.oO(Armin)
Quarco wrote:
register globals = on;

tried that one?


Thank you very much Quarco !!

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

it works!


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
Jul 17 '05 #4

P: n/a
Michael Fesser wrote:
.oO(Armin)

Quarco wrote:
register globals = on;

tried that one?


Thank you very much Quarco !!

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

it works!

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


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.php" 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="speichern" name="sp_umsatz">
</form>
</td>

<td align=center colspan=2>
<form action="index.php" method="post">
<br>Wareneinkauf, 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="speichern" 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_umsatz))
{
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);
}
}

........
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.