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

  1. #1

    Default BASIC HELP on php

    I am new in programming with PHP.

    I wrote the following code:

    file name: output.php

    <?php echo $texto; ?>

    And I call it on my browser like:
    [url]http://localhost/cgt/output.php?texto=testing[/url]

    The response in my browser is:
    Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1

    Can anybody help me?
    Lots of thanks.

    (you can reply to my email address.)
    tobias Guest

  2. Similar Questions and Discussions

    1. FMS BASIC HELP PLEASE
      I am a newb but learning, im wanting to know if i can have a 2 way webcam chat installed on a clients website, hosted from my own pc? if so whats the...
    2. Basic SQL
      I have this bit of code: <cfif day eq '_1'> <cfquery name = "update" dataSource = "KFS"> UPDATE tbl_Legends SET _1 = '#description#' WHERE...
    3. 3D basic
      I'm having some problems in 3D basic programming: 1. how can i remove one or more model in a 3D sprite on the stage? 2. how can i get the model's...
    4. Dark basic pro VS blitz basic 3D VS 3d game studio VS shockwave VS jamajic
      What are all your thoughts on the other leading 3D indi game creation packages out there? Are there others that I didn?t mention? here are a few...
    5. very basic
      hi all i am quite new to lingo and got a basic problem i ve 5 buttons b1,b2,b3,b4,b5 and i ve 5 movies in the cast m1,m2,m3,m4,m5 simply i...
  3. #2

    Default Re: BASIC HELP on php

    On Sat, 23 Aug 2003 15:13:44 -0700, tobias wrote:
    > I am new in programming with PHP.
    >
    > I wrote the following code:
    >
    > file name: output.php
    >
    > <?php echo $texto; ?>
    >
    > And I call it on my browser like:
    > [url]http://localhost/cgt/output.php?texto=testing[/url]
    >
    > The response in my browser is:
    > Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1
    >
    > Can anybody help me?
    > Lots of thanks.
    >
    > (you can reply to my email address.)

    That's because of a setting in php.ini ... REGISTER_GLOBALS = OFF ...
    <?php echo $_GET['texto']; ?> will work though

    hth,
    sotto

    sotto Guest

  4. #3

    Default Re: BASIC HELP on php

    You have register_globals set to off in your php.ini file.
    user $_GET['texto'] instead of $texto.

    HTH

    "tobias" <tobias@sabadellpisos.com> wrote in message
    news:165e4477.0308231413.2b589a3f@posting.google.c om...
    > I am new in programming with PHP.
    >
    > I wrote the following code:
    >
    > file name: output.php
    >
    > <?php echo $texto; ?>
    >
    > And I call it on my browser like:
    > [url]http://localhost/cgt/output.php?texto=testing[/url]
    >
    > The response in my browser is:
    > Notice: Undefined variable: texto in C:\Inetpub\cgt\output.php on line 1
    >
    > Can anybody help me?
    > Lots of thanks.
    >
    > (you can reply to my email address.)

    sam 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