cancel a text lines

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

    cancel a text lines

    Hello,
    at present I have a solution to cancel an line entrie within a table.
    <a href=\"pa.php?l oeschen=1&nr=$n r>
    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(loes chen)).

    Maybe somebody can help me.
  • Sebastian Kucharczyk

    #2
    Re: cancel a text lines

    tag,

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

    if i understand it correct, then it should be the `register_globa ls 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.

    Comment

    • David Precious

      #3
      Re: cancel a text lines

      BjoernJackschin a wrote:
      [color=blue]
      > at present I have a solution to cancel an line entrie within a table.
      > <a href=\"pa.php?l oeschen=1&nr=$n r>
      > 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(loes chen)).[/color]

      It sounds like your problem is related to the register_global s setting.

      Whatever server you originally had the script set up on must have had
      register_global s 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_global s on (which is a
      Good Thing), it doesn't get set. You'll need to change $loeschen to
      $_GET['loeschen'] instead.

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

      Cheers

      Dave P


      --
      David Precious


      Comment

      Working...