problem to get data from a form (method=get)

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

  1. #1

    Default problem to get data from a form (method=get)

    i am using redhat8 with default php installed, the problem i am facing
    is that:

    #test.php
    <?php
    echo $test_value;
    ?>

    localhost/test.php?test_value=abc

    whatever values i try, php can't get my values passed by get or direct
    url passing. do you have any ideas about that problem? thanks :)
    linux newbie Guest

  2. Similar Questions and Discussions

    1. Is creationComplete=method() or initialize=method() theright solution for such kind of problem or ...?
      Hi everybody, I am using web service in my flex application and I want to visualize some data from collection of objects taht I receive from my Web...
    2. Dynamic form to create pie chart - problem reprentingthe data not selected by user
      I have created a pie chart based on what a user select on a form. For example, a user can select from a list of species they want to view a pie...
    3. problem displaying class method returns in form elements
      Just come across this annoying problem -- Including a line such as <INPUT type="text" name="whatever" value = "<?php print @$myclass.value?>" >...
    4. problem posting data from asp form
      I am running IIS5, Win2k Server, and .Net Framework 1.1. For some reason asp forms will not post data. So I have a form with a text box. The...
    5. problem with a mysql query with data from a form
      hi, i am a newbie to php and mysql, i run the easyphp kit ( php 4.2.0, Mysql 3.23.49 and phpmyadmin 2.2.6 ) i would like to use a select *...
  3. #2

    Default Re: problem to get data from a form (method=get)

    linux newbie wrote:
    > i am using redhat8 with default php installed, the problem i am facing
    > is that:
    >
    > #test.php
    > <?php
    > echo $test_value;
    > ?>
    >
    > localhost/test.php?test_value=abc
    >
    > whatever values i try, php can't get my values passed by get or direct
    > url passing. do you have any ideas about that problem? thanks :)
    <?php
    echo $_GET['test_value'];
    ?>

    Look up register_globals in the manual
    Andy Barfield Guest

  4. #3

    Default Re: problem to get data from a form (method=get)

    Andy Barfield wrote:
    > linux newbie wrote:
    >
    >> i am using redhat8 with default php installed, the problem i am facing
    >> is that:
    >>
    >> #test.php
    >> <?php
    >> echo $test_value;
    >> ?>
    >>
    >> localhost/test.php?test_value=abc
    >>
    >> whatever values i try, php can't get my values passed by get or direct
    >> url passing. do you have any ideas about that problem? thanks :)
    >
    >
    > <?php
    > echo $_GET['test_value'];
    > ?>
    >
    > Look up register_globals in the manual
    yes, i can do it in that way, but why i can't get value directly by that
    variable name? because it is working in other redhat apache?
    linux newbie Guest

  5. #4

    Default Re: problem to get data from a form (method=get)

    Andy Barfield wrote:
    > linux newbie wrote:
    >
    >> i am using redhat8 with default php installed, the problem i am facing
    >> is that:
    >>
    >> #test.php
    >> <?php
    >> echo $test_value;
    >> ?>
    >>
    >> localhost/test.php?test_value=abc
    >>
    >> whatever values i try, php can't get my values passed by get or direct
    >> url passing. do you have any ideas about that problem? thanks :)
    >
    >
    > <?php
    > echo $_GET['test_value'];
    > ?>
    >
    > Look up register_globals in the manual

    thank you very much :)
    linux newbie Guest

  6. #5

    Default Re: problem to get data from a form (method=get)

    on Monday 13 September 2004 15:46 linux newbie was babbling of...
    >> Look up register_globals in the manual
    > yes, i can do it in that way, but why i can't get value directly by that
    > variable name? because it is working in other redhat apache?
    mainly security reasons... this will avoid passing vars directly to the
    script overriding script's values...

    --
    William Maddler
    [url]http://www.personepigre.it[/url]
    [url]http://www.maddler.net[/url]

    William Maddler 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