Variable do not move from on script to the another one.

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Variable do not move from on script to the another one.

    Hello to all

    I just download the WAMP (apache-mysql-php) package.
    This package work with PHP5.

    Aktually I can't move on variable ($id) the next script!

    Script: articles.php
    ...
    echo "<td><a target='gauche'
    href='affarticle.php?id=$row[0]'><img
    src='articles/$row[7]' width='30' height='45'
    border='0'></a>";
    ...

    Explorer show me the following information in status line:
    .../affarticle.php?id=5

    But the affarticle.php script do not know any more the
    value $id!

    //Debug
    Echo "<p>ID: ".$id;
    echo "<p>";

    The mentioned scripts work very well by the provider!

    Until yet I couldn't find out the problem. Do I have to
    setup something in Apache or PHP ?

    Many thanks in advance for your help.

    Otto

    l'atelier Ho Guest

  2. Similar Questions and Discussions

    1. cfformitem script variable used in cfif
      Hi, I have this code within a cfform in flash format: <cfformitem type="script"> mycat = {Category.selectedItem.data}; </cfformitem> ...
    2. variable to a shell-script
      hello, i've got really problems transporting a form-variable (called searchstring) to a shellscript :-/ because of a blank in the searchstring...
    3. i want a script to move objects smoothly
      hey folks: i've been doing some animation and one problem i have repeatedly is that i want to mimic REAL 3d movement....in particular, i want to...
    4. newbie Variable script error - Help!
      I've been using Director for nice linear keyframed animations for years -- thanks, MM! Now I would like to speed things up using Lingo (replacing...
    5. Try to pass variable into a php script
      I am not sure how you used javascript to submit the form. I usually do like document.form.action = "/cgi-bin/register.pl"...
  3. #2

    Default Re: Variable do not move from on script to the another one.

    *** l'atelier Ho wrote/escribió (Wed, 18 Aug 2004 13:32:29 +0200):
    > echo "<td><a target='gauche'
    > href='affarticle.php?id=$row[0]'><img
    > src='articles/$row[7]' width='30' height='45'
    > border='0'></a>";
    Use one of these (just in case):

    "...{$row[0]}..."
    "..." . $row[0] . "..."


    > Echo "<p>ID: ".$id;
    The right syntax is:

    echo "<p>ID: " . $_GET['id'];


    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Questions sent to my mailbox will be billed ;-)
    --
    Alvaro G Vicario Guest

  4. #3

    Default Re: Variable do not move from on script to the another one.

    Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote:
    >> Echo "<p>ID: ".$id;
    > The right syntax is:
    > echo "<p>ID: " . $_GET['id'];
    Additional info: You may want to read more about "register_globals" within
    php.ini & related.

    --
    meint Günther Fuchs

    | Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
    | indem Sie sie einfach nicht anklicken.
    | [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
    Guenther Fuchs Guest

  5. #4

    Default Re: Variable do not move from on script to the another one.

    Hello Guenther
    > Additional info: You may want to read more about "register_globals" within
    > php.ini & related.
    >
    Many thanks for you help. I set the register_globals to On, and now every
    thinks work well.

    Best regards

    Otto


    l'atelier Ho Guest

  6. #5

    Default Re: Variable do not move from on script to the another one.

    *** l'atelier Ho wrote/escribió (Wed, 18 Aug 2004 19:49:07 +0200):
    > Many thanks for you help. I set the register_globals to On, and now every
    > thinks work well.
    I suggest that you turn it off again and start writing your scripts in such
    a way that they needn't register_globals on. There's a good reason for
    "off" being the default option: it's a security risk since anyone can set
    variables in your script, just creating a GET value.


    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Questions sent to my mailbox will be billed ;-)
    --
    Alvaro G Vicario Guest

  7. #6

    Default Re: Variable do not move from on script to the another one.

    Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote:
    > I suggest that you turn it off again and start writing your scripts in
    > such a way that they needn't register_globals on.
    I only can follow this suggestion and double it, what I meant was NOT to
    turn register_globals on but more to read about WHY it is turned off and
    how to (easily!) use proper code ;-)

    --
    meint Günther Fuchs

    | Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
    | indem Sie sie einfach nicht anklicken.
    | [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
    Guenther Fuchs Guest

  8. #7

    Default Re: Variable do not move from on script to the another one.

    Hello,

    > > I suggest that you turn it off again and start writing your scripts in
    > > such a way that they needn't register_globals on.
    >
    > I only can follow this suggestion and double it, what I meant was NOT to
    > turn register_globals on but more to read about WHY it is turned off and
    > how to (easily!) use proper code ;-)
    >
    Do you think that my provider have it on "on" that the same script work
    there?

    Regards

    Otto

    l'atelier Ho Guest

  9. #8

    Default Re: Variable do not move from on script to the another one.

    l'atelier Ho <ateho@freesurf.ch> wrote:
    > Do you think that my provider have it on "on" that the same script
    > work there?
    Yes I do, unfortunately most providers do have it on "on" although this is
    a security leak.

    --
    meint Günther Fuchs

    | Am effektivsten schützen Sie sich vor böswilligen Hyperlinks,
    | indem Sie sie einfach nicht anklicken.
    | [url]http://support.microsoft.com/default.aspx?scid=kb;[/url][ln];833786
    Guenther Fuchs Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139