473,474 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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.
Jul 17 '05 #1
4 1496
/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
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
.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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kurien Baker Fenn | last post by:
How to send data from an ASP form to a visual basic form? Please help
8
by: Bob Bedford | last post by:
I've a code with redirect to a login page if nobody is registered. It works fine on IE6, but I'm trying with NS, and it doesn't work. Here is the code: <form name="RedirectLogin" method="POST"...
0
by: André Betz | last post by:
Hi, I've established a TCP-Socket Connection and now I want to receive datas. So I called BeginReceive where I set the receiving buffer and length. Now in the asynchronous CallBack-Function I...
5
by: franz | last post by:
i have an html page that send datas from a form to an aspx page. when, in aspx page, i take the value with Request.Form.Item("Nome") i can't get the accents. let's say, if i type the string...
4
by: marek zegarek | last post by:
Hello! I have strange and simple problem.... I am starting developer. I need to create webform, that will insert my data into SQL 2005 database. My idea is to make something like MS Access...
0
by: Lawrence 007 | last post by:
Hi, This is my first big project. I have a form that is loaded with customer information. The datagrid is created with code as you can see below. I do not want the user to be able to update data...
1
palanivel
by: palanivel | last post by:
sir, now i am creating VB.NET windows form using "student details"project .....for example u r applying any company ... first form finished then "save next" button click then first form...
0
by: imagetvr | last post by:
Hello I am using windows XP I need a small programme in Visual basic 6 with Access 2000 I have two tables for example one table named student other table named section In student table...
1
by: blesstomz | last post by:
hi..all how can i block viewing the datas in a text boxes while opening a form in ms access.now when i open the form scrolling ma mouse all the datas i entered before are displaying in the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.