473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

cancel a text lines

Hello,
at present I have a solution to cancel an line entrie within a table.
<a href=\"pa.php?loeschen=1&nr=$nr>
It works with reading or selecting text files and so I know if someone
has canceled a line.
But I don't know why it doesn't work with Apache because my solution
was with ISS. So my question what is another solution to cancel
particularized lines or what have I done wrong.
The variables 'loeschen' used to be not reconize, as
well(isset(loeschen)).

Maybe somebody can help me.
Jul 17 '05 #1
2 1928
tag,

BjoernJackschina wrote:
at present I have a solution to cancel an line entrie within a table.
<a href=\"pa.php?loeschen=1&nr=$nr>
[...]
The variables 'loeschen' used to be not reconize, as
well(isset(loeschen)).


if i understand it correct, then it should be the `register_globals prob'.
either you activate this setting in your php.ini or you write
better code, for example $_GET['loeschen'].
look here: http://de3.php.net/variables.predefined

sers.
Jul 17 '05 #2
BjoernJackschina wrote:
at present I have a solution to cancel an line entrie within a table.
<a*href=\"pa.php?loeschen=1&nr=$nr>
It works with reading or selecting text files and so I know if someone
has canceled a line.
But I don't know why it doesn't work with Apache because my solution
was with ISS. So my question what is another solution to cancel
particularized lines or what have I done wrong.
The variables 'loeschen' used to be not reconize, as
well(isset(loeschen)).


It sounds like your problem is related to the register_globals setting.

Whatever server you originally had the script set up on must have had
register_globals enabled - therefore, the URL you gave in your post would
result in the variable $loeschen being set to '1'.

Now you're on a server which doesn't have register_globals on (which is a
Good Thing), it doesn't get set. You'll need to change $loeschen to
$_GET['loeschen'] instead.

register_globals, while making for easy (and sloppy) coding, is a security
risk. A quick Google will tell you why.

Cheers

Dave P
--
David Precious
http://www.preshweb.co.uk/

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: ryanmhuc | last post by:
I have a function which needs to cancel the input into a text field on a form. I cancel the event in IE fine and the text does not get entered. But for firefox (1.0) I cancel the event and the text...
1
by: WindAndWaves | last post by:
Goodmorning Gurus Here is another of my questions..... When adding code to a control then access sometimes puts in a couple of 'parameters'. Can anyone tell me what the use of them is. I have...
1
by: Jay | last post by:
I am new to coding so I am trying to learn. I have a save dialog box that I am able to get to work. I can save a file and all is good. My problem is when I hit cancel I am getting an error and I...
6
by: Peter M. | last post by:
Hi all, If an event has multiple subscribers, is it possible to cancel the invocation of event handlers from an event handler? Or to be more specific: I'm subscribing to the ColumnChanging...
2
by: andrew.roberts | last post by:
This is my second post now on this subject has I seem to be getting no where and the problem is really starting to bug me now. I can get a datagrid into an editable state but then neither the...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
3
by: Birky | last post by:
Hello, I’m hoping you can help me out with two issues I’m having with my code. I have an Access Report named Report_Project_Event_Log which I have calling a Form named “Custom_Code_lookup” which...
5
by: Steve | last post by:
In VB6 I have a screen the has a text box and a datagrid If I click the datagrid, the 1st event is to validate the textbox and then the 2nd event is a datagrid mousedown event. If a get an error...
0
by: Eraser | last post by:
Hi to all .NET guru guys... I have a problem in my delete button inside gridview. How to avoid postback on when i select cancel on confirmation message? But postback is okay on Ok confirmation....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.